DI\Service

Class Phalcon\DI\Service

implements Phalcon\DI\ServiceInterface

Represents individually a service in the services container

$service = new Phalcon\DI\Service('request', 'Phalcon\Http\Request');
 $request = $service->resolve();

Methods

public __construct (string $name, mixed $definition, [boolean $shared])

public getName ()

Returns the service’s name

public setShared (boolean $shared)

Sets if the service is shared or not

public boolean isShared登录查看完整内容