I have put a couple of custom variables in my app/config/parameters.yml.
parameters: api_pass: apipass api_user: apiuser
I need to
You can also use:
$container->getParameter('api_user');
Visit http://symfony.com/doc/current/service_container/parameters.html