Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Application
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace BrianHenryIE\Strauss\Console;
4
5use BrianHenryIE\Strauss\Console\Commands\DependenciesCommand;
6use BrianHenryIE\Strauss\Console\Commands\IncludeAutoloaderCommand;
7use BrianHenryIE\Strauss\Console\Commands\ReplaceCommand;
8use Symfony\Component\Console\Application as BaseApplication;
9
10class Application extends BaseApplication
11{
12    /**
13     * @param string $version
14     */
15    public function __construct(string $version)
16    {
17        parent::__construct('strauss', $version);
18
19        $composeCommand = new DependenciesCommand();
20        $this->add($composeCommand);
21
22        $replaceCommand = new ReplaceCommand();
23        $this->add($replaceCommand);
24
25        $this->add(new IncludeAutoloaderCommand());
26
27        $this->setDefaultCommand('dependencies');
28    }
29}