Skip to content

Instantly share code, notes, and snippets.

@enumag
Created September 2, 2013 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enumag/6417587 to your computer and use it in GitHub Desktop.
Save enumag/6417587 to your computer and use it in GitHub Desktop.
Nette riddle - are these equivalent?
services:
foo:
class: FooService('two')
services:
foo:
class: FooService
arguments: [ 'two' ]
@Majkl578
Copy link

Majkl578 commented Sep 2, 2013

Guess #1: Second one doesn't provide autowiring for other parameters?

@enumag
Copy link
Author

enumag commented Sep 18, 2013

@Majkl578: Oh I've not noticed your guess here. Anyway, wrong.

Hint: Try to overwrite service defined like this in another neon file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment