addFoobar example



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

        $instance->addFoobar(($container->services['foobar'] ?? self::getFoobarService($container)));

        return $instance;
    }

    /** * Gets the public 'bar3' shared service. * * @return \BarCircular */
    protected static function getBar3Service($container)
    {
        


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

        $instance->addFoobar(new \FoobarCircular(($container->services['foo2'] ?? self::getFoo2Service($container))));

        return $instance;
    }

    /** * Gets the public 'bar3' shared service. * * @return \BarCircular */
    protected static function getBar3Service($container)
    {
        
Home | Imprint | This part of the site doesn't use cookies.