Skip to content

Phalcon Container

Updated View as Markdown

Container

Source on GitHub

  • Namespace

    • Phalcon
  • Uses

    • Psr\Container\ContainerInterface
    • Phalcon\Di\DiInterface
  • Extends

  • Implements

    • ContainerInterface

PSR-11 Wrapper for Phalcon\Di

Properties

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

Methods

public function __construct( DiInterface $container );

Phalcon\Container constructor

public function get( mixed $name ): mixed;

Return the service

public function has( mixed $name ): bool;

Whether a service exists or not in the container

Type to search…

↑↓ navigate↵ selectEsc close