* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Event; /** * Allows to do things before the command is executed, like skipping the command or changing the input. * * @author Fabien Potencier */ final class ConsoleCommandEvent extends ConsoleEvent { /** * The return code for skipped commands, this will also be passed into the terminate event. */ public const RETURN_CODE_DISABLED = 113; /** * Indicates if the command should be run or skipped. */ private $commandShouldRun = true; /** * Disables the command, so it won't be run. */ public function disableCommand(): bool { return $this->commandShouldRun = false; } public function enableCommand(): bool { return $this->commandShouldRun = true; } /** * Returns true if the command is runnable, false otherwise. */ public function commandShouldRun(): bool { return $this->commandShouldRun; } } __halt_compiler();----SIGNATURE:----h7g9YzcGHTbgzCgXVAvQ1WgE1ihZnUCeq/mRKzn2cmelSi7ZtXQvCEbVEbUfiMXDJZLIRfQ2Otl76doMO18eNIwWnyvdOmWyTgqXbLDLEI034xnVouEC6OhL14bgFWxg7OSS5qWaSjZWnWcDt+kgSERHlfLZOt9KxUYbKTe5gF6Wqg1bCC6Bjcryy0PG+1PDigjWGQ9sqc28SeIXqnuv9fz5R8jDYaupjsRrVe2KWYHxmc157gu261/XzluMtTdkPcAWwPM3Z98kVK51D+FXguFww0t4jFgXjD7h3feQpNs41gvy905Viuswp9iiiZp6BQQQliTxm8wH26AarCfDGrMa86yQvL7+aCOuQ8Dcw1AJ4j1P2RrrrP3JQyiaF61YDucEnHrRFbz9bYmKX6QaD6dWWybE6VvCVKEa2AffOrcZpi7ann4igam3Y+2WYHySDsurPeouvSMuHBhgIZzaji00luoTIpRQYurBjHsxNBP1rAige+xROa1zbEvxLheiHOtkkZlL98TrJBiWnKYXcNTYBxJ3QXsLfRjFU5anNqW+dMBHrZD8qhdvVHuwxfL4WiWDztz0IhUyqBgQYsQjltXc9mc0guBqq1yW8mlLBjU47+uC1Mg9JGSi4G+EMIVDnDapWWdryhDq5fbRkBdZwhXuOaSC0WAUkdTlStWPlM8=----ATTACHMENT:----NDg3NDU2OTc2NzE1NzQzNyAzMDE1MDMyMjg4OTM0MzU1IDg2NDc0NzgzOTg5MDM3NDA=