W3cubDocs

/CakePHP 4.1

Interface CommandFactoryInterface

An interface for abstracting creation of command and shell instances.

Namespace: Cake\Console

Method Summary

  • create() public

    The factory method for creating Command and Shell instances.

Method Detail

create() public

create(string $className)

The factory method for creating Command and Shell instances.

Parameters

string $className

Command/Shell class name.

Returns

\Cake\Console\Shell|\Cake\Console\CommandInterface

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/interface-Cake.Console.CommandFactoryInterface.html