Last active
August 29, 2015 14:09
-
-
Save matej21/e01a002e8269dbd840df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
# takhle to bylo pred tim | |
# - FooFactory | |
#a takhle nyni | |
- | |
implement: FooFactory | |
parameters: [id] | |
arguments: [%id%] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
public function __construct($id, FooModel $fooModel) | |
{ | |
... | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface FooFactory | |
{ | |
/** | |
* @return Foo | |
*/ | |
public function create($id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment