| @@ 23-49 (lines=27) @@ | ||
| 20 | * | |
| 21 | * Console command for warming the cache | |
| 22 | */ | |
| 23 | class CacheWarmupCommand extends BaseCommand | |
| 24 | { | |
| 25 | public function __construct(AspectKernel $aspectKernel) | |
| 26 |     { | |
| 27 | parent::__construct(null); | |
| 28 | $this->aspectKernel = $aspectKernel; | |
| 29 | } | |
| 30 | ||
| 31 | /** | |
| 32 |      * {@inheritdoc} | |
| 33 | */ | |
| 34 | protected function configure() | |
| 35 |     { | |
| 36 | parent::configure(); | |
| 37 | $arguments = $this->getDefinition()->getArguments(); | |
| 38 | unset($arguments['loader']); | |
| 39 | $this->getDefinition()->setArguments($arguments); | |
| 40 | } | |
| 41 | ||
| 42 | /** | |
| 43 |      * {@inheritdoc} | |
| 44 | */ | |
| 45 | protected function loadAspectKernel(InputInterface $input, OutputInterface $output) | |
| 46 |     { | |
| 47 | /* noop */ | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| @@ 23-49 (lines=27) @@ | ||
| 20 | * | |
| 21 | * Console command to debug an advisors | |
| 22 | */ | |
| 23 | class DebugAdvisorCommand extends BaseCommand | |
| 24 | { | |
| 25 | public function __construct(AspectKernel $aspectKernel) | |
| 26 |     { | |
| 27 | parent::__construct(null); | |
| 28 | $this->aspectKernel = $aspectKernel; | |
| 29 | } | |
| 30 | ||
| 31 | /** | |
| 32 |      * {@inheritdoc} | |
| 33 | */ | |
| 34 | protected function configure() | |
| 35 |     { | |
| 36 | parent::configure(); | |
| 37 | $arguments = $this->getDefinition()->getArguments(); | |
| 38 | unset($arguments['loader']); | |
| 39 | $this->getDefinition()->setArguments($arguments); | |
| 40 | } | |
| 41 | ||
| 42 | /** | |
| 43 |      * {@inheritdoc} | |
| 44 | */ | |
| 45 | protected function loadAspectKernel(InputInterface $input, OutputInterface $output) | |
| 46 |     { | |
| 47 | /* noop */ | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| @@ 23-49 (lines=27) @@ | ||
| 20 | * | |
| 21 | * Console command for querying an information about aspects | |
| 22 | */ | |
| 23 | class DebugAspectCommand extends BaseCommand | |
| 24 | { | |
| 25 | public function __construct(AspectKernel $aspectKernel) | |
| 26 |     { | |
| 27 | parent::__construct(null); | |
| 28 | $this->aspectKernel = $aspectKernel; | |
| 29 | } | |
| 30 | ||
| 31 | /** | |
| 32 |      * {@inheritdoc} | |
| 33 | */ | |
| 34 | protected function configure() | |
| 35 |     { | |
| 36 | parent::configure(); | |
| 37 | $arguments = $this->getDefinition()->getArguments(); | |
| 38 | unset($arguments['loader']); | |
| 39 | $this->getDefinition()->setArguments($arguments); | |
| 40 | } | |
| 41 | ||
| 42 | /** | |
| 43 |      * {@inheritdoc} | |
| 44 | */ | |
| 45 | protected function loadAspectKernel(InputInterface $input, OutputInterface $output) | |
| 46 |     { | |
| 47 | /* noop */ | |
| 48 | } | |
| 49 | } | |
| 50 | ||