4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Autoloader\Cli;
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;
20 * Registers Testwork autoloader.
22 * @author Konstantin Kudryashov <ever.zet@gmail.com>
24 final class AutoloaderController implements Controller
32 * Initializes controller
34 * @param ClassLoader $loader
36 public function __construct(ClassLoader $loader)
38 $this->loader = $loader;
44 public function configure(Command $command)
51 public function execute(InputInterface $input, OutputInterface $output)
53 $this->loader->register();