Skip to content

Commit b491d2d

Browse files
committed
bug #6884 service_container : fix php Definition instance (ReDnAxE)
This PR was merged into the 2.7 branch. Discussion ---------- service_container : fix php Definition instance Nothing really important ^^, just according YAML format with PHP format. I have a question but I don't know where I can ask ^^ : The doc says that $container->register is a shortcut of definition method [("shortcut for the previous method")](http://symfony.com/doc/current/service_container/definitions.html#getting-and-setting-service-definitions). But for me definition method is not the same as directly register service in containerBuidler. Is there a place where I can post my questions ? EDIT: I think this is not a justified PR, if so, sorry for the time spent Commits ------- 20590f5 service_container : fix php Definition instance
2 parents 807ed8f + 20590f5 commit b491d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/factories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ configure the service container to use the
9393
9494
$container->register('app.newsletter_manager_factory', 'AppBundle\Email\NewsletterManagerFactory');
9595
96-
$newsletterManager = new Definition();
96+
$newsletterManager = new Definition('AppBundle\Email\NewsletterManager');
9797
9898
// call a method on the specified service
9999
$newsletterManager->setFactory(array(

0 commit comments

Comments
 (0)