1 | <?php |
||
12 | final class PlaceholdersController implements Controller |
||
13 | { |
||
14 | |||
15 | private $placeholderReplacer; |
||
16 | |||
17 | function __construct(PlaceholdersReplacer $placeholderReplacer) |
||
21 | |||
22 | /** |
||
23 | * Adds the optional --environment / -e option to the Behat CLI |
||
24 | * |
||
25 | * @param SymfonyCommand $command |
||
26 | */ |
||
27 | public function configure(SymfonyCommand $command) |
||
31 | |||
32 | /** |
||
33 | * Gets the environment option and pass it on to the PlaceholdersReplacer |
||
34 | * |
||
35 | * @param InputInterface $input |
||
36 | * @param OutputInterface $output |
||
37 | * @todo pass environment to StepTester |
||
38 | */ |
||
39 | public function execute(InputInterface $input, OutputInterface $output) |
||
45 | } |
||
46 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.