Question: I'm using `istringstream` to break the tokens of a string. Let's say I have a string like this: 

```
print "this is a test"

```

It breaks it into 5 tokens:

> 
> print | "this | is | a | test"
> 
> 
> 

where it should generate 2 tokens: 

> 
> print | "this is a test"
> 
> 
> 

Is there a good way to fix it? I tried doing it manually, by finding the quotes in the text and doing a substring, but it's too much work. 

I guess there should be a simpler way, or is `istringstream` the way to do it?

Answer: 
You can't modify Container once it has been compiled, which is done before invoking the controller.

The DIC parameters are intended for configuration purposes - not a replacement for global variables. In addition it seems you want to persist some kind of permanent modification. In that case consider using session if it's a per-user modification or persisting it (e.g. into DB) if it's supposed to be application-wide.

If you need to modify DIC parameters or services, you can do so using a compiler pass. More info on how to write custom compiler passes can be found at:
<http://symfony.com/doc/master/cookbook/service_container/compiler_passes.html>
You can set $\_ENV variables and get that after

```
putenv("VAR=1");

```

And to get

```
getenv("VAR");

```