vendor/corley/maintenance-bundle/Corley/MaintenanceBundle/Command/MaintenanceCommand.php line 6

Open in your IDE?
  1. <?php
  2. namespace Corley\MaintenanceBundle\Command;
  3. use Symfony\Component\Console\Input\InputArgument;
  4. class MaintenanceCommand extends BaseMaintenanceCommand
  5. {
  6.     protected function configure()
  7.     {
  8.         $this
  9.             ->setName("corley:maintenance:lock")
  10.             ->setDescription("Enable/Disable maintenance mode")
  11.             ->setDefinition(array(
  12.                 new InputArgument('status'InputArgument::REQUIRED'The final status')
  13.             ))
  14.             ->setHelp(<<<EOF
  15. Enable or Disable the Maintenance mode
  16.     <info>php app/console corley:maintenance:lock on</info>
  17. EOF
  18.         );
  19.     }
  20. }