implements Phalcon\Di\ServiceInterface
Source on GitHub
Represents individually a service in the services container
$service = new \Phalcon\Di\Service('request', 'Phalcon\Http\Request');
$request = service->resolve();
Methods
final public __construct (string $name, mixed $definition, [boolean $shared])
public getName ()
Returns the service’s name
public setShared (mixed $shared)
Sets if the service is shared or not
public isShared ()
Check whether the service is shared or not
public setSha