Created
August 13, 2012 09:27
-
-
Save gzankevich/3338647 to your computer and use it in GitHub Desktop.
This file contains 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
$this->get('test.service'); | |
yeilds: | |
array (size=2) | |
0 => string 'hello' (length=5) | |
1 => string 'world' (length=5) |
This file contains 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
test.service: | |
class: Phoenix\CRMBundle\Lib\TestService | |
arguments: | |
test: | |
- "hello" | |
- "world" |
This file contains 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 | |
namespace Phoenix\CRMBundle\Lib; | |
class TestService | |
{ | |
public function __construct($test) | |
{ | |
var_dump($test); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment