Skip to content

Instantly share code, notes, and snippets.

@gzankevich
Created August 13, 2012 09:27
Show Gist options
  • Save gzankevich/3338647 to your computer and use it in GitHub Desktop.
Save gzankevich/3338647 to your computer and use it in GitHub Desktop.
$this->get('test.service');
yeilds:
array (size=2)
0 => string 'hello' (length=5)
1 => string 'world' (length=5)
test.service:
class: Phoenix\CRMBundle\Lib\TestService
arguments:
test:
- "hello"
- "world"
<?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