PrototypeConfigurator example


        $this->container->setAlias($id$alias);

        return new AliasConfigurator($this$alias);
    }

    /** * Registers a PSR-4 namespace using a glob pattern. */
    final public function load(string $namespace, string $resource): PrototypeConfigurator
    {
        return new PrototypeConfigurator($this$this->loader, $this->defaults, $namespace$resource, true, $this->path);
    }

    /** * Gets an already defined service definition. * * @throws ServiceNotFoundException if the service definition does not exist */
    final public function get(string $id): ServiceConfigurator
    {
        $definition = $this->container->getDefinition($id);

        

        $this->container->setAlias($id$alias);

        return new AliasConfigurator($this$alias);
    }

    /** * Registers a PSR-4 namespace using a glob pattern. */
    final public function load(string $namespace, string $resource): PrototypeConfigurator
    {
        return new PrototypeConfigurator($this$this->loader, $this->defaults, $namespace$resource, true, $this->path);
    }

    /** * Gets an already defined service definition. * * @throws ServiceNotFoundException if the service definition does not exist */
    final public function get(string $id): ServiceConfigurator
    {
        $definition = $this->container->getDefinition($id);

        
Home | Imprint | This part of the site doesn't use cookies.