Sections

Class Phalcon\Container\Container

Исходный код на GitHub

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

PSR-11 Wrapper for Phalcon\Di

Properties

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

Методы

public function __construct( DiInterface $container );

Phalcon\Container constructor

public function get( string $name ): mixed;

Return the service

public function has( string $name ): bool;

Whether a service exists or not in the container