1: <?php
2: /**
3: * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4: * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5: * Licensed under The MIT License
6: * For full copyright and license information, please see the LICENSE.txt
7: * Redistributions of files must retain the above copyright notice.
8: *
9: * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
10: * @link http://cakephp.org CakePHP(tm) Project
11: * @license http://www.opensource.org/licenses/mit-license.php MIT License
12: */
13: namespace Cake\Console;
14:
15: /**
16: * An interface for abstracting creation of command and shell instances.
17: */
18: interface CommandFactoryInterface
19: {
20: /**
21: * The factory method for creating Command and Shell instances.
22: *
23: * @param string $className Command/Shell class name.
24: * @return \Cake\Console\Shell|\Cake\Console\Command
25: */
26: public function create($className);
27: }
28: