Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Autoloader / Cli / AutoloaderController.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Testwork\Autoloader\Cli;
12
13 use Behat\Testwork\Cli\Controller;
14 use Symfony\Component\ClassLoader\ClassLoader;
15 use Symfony\Component\Console\Command\Command;
16 use Symfony\Component\Console\Input\InputInterface;
17 use Symfony\Component\Console\Output\OutputInterface;
18
19 /**
20  * Registers Testwork autoloader.
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 final class AutoloaderController implements Controller
25 {
26     /**
27      * @var ClassLoader
28      */
29     private $loader;
30
31     /**
32      * Initializes controller
33      *
34      * @param ClassLoader $loader
35      */
36     public function __construct(ClassLoader $loader)
37     {
38         $this->loader = $loader;
39     }
40
41     /**
42      * {@inheritdoc}
43      */
44     public function configure(Command $command)
45     {
46     }
47
48     /**
49      * {@inheritdoc}
50      */
51     public function execute(InputInterface $input, OutputInterface $output)
52     {
53         $this->loader->register();
54     }
55 }