PluginProbe
UpStream: a Project Management Plugin for WordPress / trunk
UpStream: a Project Management Plugin for WordPress vtrunk
trunk 1.39.0 1.39.1 1.39.2 1.39.3 2.0.7 2.1.0
upstream / vendor / symfony / console / CommandLoader / CommandLoaderInterface.php

CommandLoaderInterface.php in UpStream: a Project Management Plugin for WordPress trunk, at vendor/symfony/console/CommandLoader/CommandLoaderInterface.php

47 lines 928 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
12 namespace Symfony\Component\Console\CommandLoader;
13
14 use Symfony\Component\Console\Command\Command;
15 use Symfony\Component\Console\Exception\CommandNotFoundException;
16
17 /**
18 * @author Robin Chalas <robin.chalas@gmail.com>
19 */
20 interface CommandLoaderInterface
21 {
22 /**
23 * Loads a command.
24 *
25 * @param string $name
26 *
27 * @return Command
28 *
29 * @throws CommandNotFoundException
30 */
31 public function get($name);
32
33 /**
34 * Checks if a command exists.
35 *
36 * @param string $name
37 *
38 * @return bool
39 */
40 public function has($name);
41
42 /**
43 * @return string[] All registered command names
44 */
45 public function getNames();
46 }
47