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 use:
public function indexAction() { dump( $this->getParameter('api_user')); }
For more information I recommend you read the doc :
http://symfony.com/doc/2.8/service_container/parameters.html