TestDefinition1 example

'late_alias' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1',
        ]))->withContext('foo_service', $container));
    }

    /** * Gets the public 'late_alias' shared service. * * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\TestDefinition1 */
    protected static function getLateAliasService($container)
    {
        return $container->services['late_alias'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestDefinition1();
    }

    /** * Gets the private 'Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition' shared service. * * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition */
    protected static function getCustomDefinitionService($container)
    {
        return $container->privates['Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition();
    }
}
Home | Imprint | This part of the site doesn't use cookies.