Skip to content

@naholyr /config.yml
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
services:
dumb:
class: Acme\DumbService
arguments:
- "name"
- "hello": { "world": { "foo": %mailer_host% } }
<?php
...
$dumb_service = $this->container->get('dumb');
$dumb_service->dump();
...
<?php
namespace Acme;
class DumbService
{
public function __construct($name, $options)
{
$this->name = $name;
$this->options = $options;
}
public function dump()
{
var_dump($this->name, $this->options);
}
}
string 'name' (length=4)
array
'hello' =>
array
'world' =>
array
'foo' => string 'localhost' (length=9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.