getBazService example

return $lazyLoad;
    }

    /** * Gets the public 'baz' shared service. * * @return \stdClass */
    protected static function getBazService($container$lazyLoad = true)
    {
        if (true === $lazyLoad) {
            return $container->services['baz'] = $container->createProxy('stdClassProxy2fc7938', static fn () => \stdClassProxy2fc7938::createLazyProxy(static fn () => self::getBazService($container, false)));
        }

        return \foo_bar();
    }

    /** * Gets the public 'buz' shared service. * * @return \stdClass */
    protected static function getBuzService($container$lazyLoad = true)
    {
/** * Gets the public 'configured_service' shared service. * * @return \stdClass */
    protected static function getConfiguredServiceService($container)
    {
        $container->services['configured_service'] = $instance = new \stdClass();

        $a = new \ConfClass();
        $a->setFoo(($container->services['baz'] ?? self::getBazService($container)));

        $a->configureStdClass($instance);

        return $instance;
    }

    /** * Gets the public 'configured_service_simple' shared service. * * @return \stdClass */
    
/** * Gets the public 'configured_service' shared service. * * @return \stdClass */
    protected static function getConfiguredServiceService($container)
    {
        $container->services['configured_service'] = $instance = new \stdClass();

        $a = new \ConfClass();
        $a->setFoo(($container->services['baz'] ?? self::getBazService($container)));

        $a->configureStdClass($instance);

        return $instance;
    }

    /** * Gets the public 'configured_service_simple' shared service. * * @return \stdClass */
    
Home | Imprint | This part of the site doesn't use cookies.