Class CommandFactory

This is a factory for creating Command and Shell instances.

This factory can be replaced or extended if you need to customize building your command and shell objects.

Cake\Console\CommandFactory implements Cake\Console\CommandFactoryInterface
Namespace: Cake\Console
Location: Console/CommandFactory.php

Method Summary

  • create() public
    The factory method for creating Command and Shell instances.

Method Detail

create()source 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\Command

Implementation of

Cake\Console\CommandFactoryInterface::create()

© 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/3.6/class-Cake.Console.CommandFactory.html