ConfClass example



    /** * 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.