Secciones

Class Phalcon\Container

Código fuente en GitHub

Namespace Phalcon   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( mixed $name ): mixed;

Devuelve el servicio

public function has( mixed $name ): bool;

Si el servicio existe o no en el contenedor