Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

TestSiteaccessCommand.php
Go to the documentation of this file.
1 <?php
2
7 namespace EzSystems\PlatformBehatBundle\Command;
8
9 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
12
13 class TestSiteaccessCommand extends ContainerAwareCommand
14 {
15 protected function configure()
16 {
17 $this
18 ->setName('ez:behat:siteaccess')
19 ->setDescription('Outputs the name of the active siteaccess');
20 }
21
22 protected function execute(InputInterface $input, OutputInterface $output)
23 {
24 $output->writeln($this->getContainer()->get('ezpublish.siteaccess')->name);
25 }
26 }
EzSystems\PlatformBehatBundle\Command\TestSiteaccessCommand
Definition: TestSiteaccessCommand.php:14
EzSystems\PlatformBehatBundle\Command\TestSiteaccessCommand\configure
configure()
Definition: TestSiteaccessCommand.php:15
EzSystems\PlatformBehatBundle\Command\TestSiteaccessCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: TestSiteaccessCommand.php:22
EzSystems\PlatformBehatBundle\Command
Definition: CreateLanguageCommand.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.