configureStdClass example


    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 */
    protected static function getConfiguredServiceSimpleService($container)
    {
        

    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 */
    protected static function getConfiguredServiceSimpleService($container)
    {
        
Home | Imprint | This part of the site doesn't use cookies.