CommandLoaderInterface.php
2 years ago
ContainerCommandLoader.php
2 years ago
FactoryCommandLoader.php
2 years ago
CommandLoaderInterface.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\Console\CommandLoader; |
| 12 | |
| 13 | use Matomo\Dependencies\Symfony\Component\Console\Command\Command; |
| 14 | use Matomo\Dependencies\Symfony\Component\Console\Exception\CommandNotFoundException; |
| 15 | /** |
| 16 | * @author Robin Chalas <robin.chalas@gmail.com> |
| 17 | */ |
| 18 | interface CommandLoaderInterface |
| 19 | { |
| 20 | /** |
| 21 | * Loads a command. |
| 22 | * |
| 23 | * @return Command |
| 24 | * |
| 25 | * @throws CommandNotFoundException |
| 26 | */ |
| 27 | public function get(string $name); |
| 28 | /** |
| 29 | * Checks if a command exists. |
| 30 | * |
| 31 | * @return bool |
| 32 | */ |
| 33 | public function has(string $name); |
| 34 | /** |
| 35 | * @return string[] |
| 36 | */ |
| 37 | public function getNames(); |
| 38 | } |
| 39 |