getFoo5Service example

return $instance;
    }

    /** * Gets the public 'bar5' shared service. * * @return \stdClass */
    protected static function getBar5Service($container)
    {
        $a = ($container->services['foo5'] ?? self::getFoo5Service($container));

        if (isset($container->services['bar5'])) {
            return $container->services['bar5'];
        }

        $container->services['bar5'] = $instance = new \stdClass($a);

        $instance->foo = $a;

        return $instance;
    }

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