WitherStaticReturnType example

'Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Foo' => true,
        ];
    }

    /** * Gets the public 'wither' shared autowired service. * * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\WitherStaticReturnType */
    protected static function getWitherService($container)
    {
        $instance = new \Symfony\Component\DependencyInjection\Tests\Fixtures\WitherStaticReturnType();

        $a = new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo();

        $container->services['wither'] = $instance = $instance->withFoo($a);
        $instance->setFoo($a);

        return $instance;
    }
}
Home | Imprint | This part of the site doesn't use cookies.