Documentation

ServiceDescriptionFactory
in package
implements FactoryInterface

Command factory used to create commands based on service descriptions

Table of Contents

Interfaces

FactoryInterface
Interface for creating commands by name

Properties

$description  : ServiceDescriptionInterface
$inflector  : InflectorInterface

Methods

__construct()  : mixed
factory()  : CommandInterface|null
Create a command by name
getServiceDescription()  : ServiceDescriptionInterface
Returns the service description
setServiceDescription()  : FactoryInterface
Change the service description used with the factory

Properties

Methods

factory()

Create a command by name

public factory(mixed $name[, array<string|int, mixed> $args = array() ]) : CommandInterface|null
Parameters
$name : mixed

Command to create

$args : array<string|int, mixed> = array()

Command arguments

Return values
CommandInterface|null

        
On this page

Search results