Property | Type | Description | |
---|---|---|---|
$app | Pimple | ||
$classmap | array |
Method | Description | |
---|---|---|
__construct ( Pimple $app, array $classmap ) | CallbackResolver Constructor. | |
convertCallback ( string $name ) : array | Converts: | |
isValid ( string $name ) : boolean | Returns true if the string is a valid service method representation or if the string/array references a class contained in the resolver's classmap. |
Method | Description | |
---|---|---|
instantiateClass ( string $class ) : object | Create a new instance of a class. |
public __construct ( Pimple $app, array $classmap ) | ||
$app | Pimple | |
$classmap | array | An array of class names as keys mapped to their service name as values Ex: 'Bolt\Controller\Frontend' => 'controller.frontend' |
public convertCallback ( string $name ) : array | ||
$name | string | |
return | array | A callable array |
protected instantiateClass ( string $class ) : object | ||
$class | string | |
return | object |