Свойство | Тип | Описание | |
---|---|---|---|
$app | Pimple | ||
$classmap | array |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | |
Результат | array | A callable array |
protected instantiateClass ( string $class ) : object | ||
$class | string | |
Результат | object |