comparison vendor/symfony/console/CommandLoader/CommandLoaderInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2
3 namespace Symfony\Component\Console\CommandLoader;
4
5 use Symfony\Component\Console\Command\Command;
6 use Symfony\Component\Console\Exception\CommandNotFoundException;
7
8 /**
9 * @author Robin Chalas <robin.chalas@gmail.com>
10 */
11 interface CommandLoaderInterface
12 {
13 /**
14 * Loads a command.
15 *
16 * @param string $name
17 *
18 * @return Command
19 *
20 * @throws CommandNotFoundException
21 */
22 public function get($name);
23
24 /**
25 * Checks if a command exists.
26 *
27 * @param string $name
28 *
29 * @return bool
30 */
31 public function has($name);
32
33 /**
34 * @return string[] All registered command names
35 */
36 public function getNames();
37 }