Skip to content

Commit

Permalink
Merge pull request #7 from northernco/command-updates
Browse files Browse the repository at this point in the history
Command updates
  • Loading branch information
cpkdevries committed Jan 30, 2023
2 parents 0563e33 + da39ad9 commit 8fb79f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Command/MaintenanceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

namespace Northern\MaintenanceModeBundle\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Filesystem\Filesystem;

#[AsCommand(
name: 'northern:maintenance',
description: 'Toggle maintenance mode',
)]
class MaintenanceCommand extends Command
{
protected static $defaultName = 'northern:maintenance';

protected static $defaultDescription = 'Toggle maintenance mode';

private Filesystem $filesystem;

private string $flagPath;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('northern_maintenance_mode');

Expand Down

0 comments on commit 8fb79f4

Please sign in to comment.