Secciones

Class Phalcon\Container\Container

Código fuente en GitHub

Namespace Phalcon\Container   Uses Psr\Container\ContainerInterface, Phalcon\Di\DiInterface   Implements ContainerInterface

Envoltura PSR-11 para Phalcon\Di

Propiedades

/**
 * @var DiInterface
 */
protected container;

Métodos

public function __construct( DiInterface $container );

Constructor Phalcon\Container

public function get( string $name ): mixed;

Devuelve el servicio

public function has( string $name ): bool;

Si el servicio existe o no en el contenedor