title: Config files in a custom Symfony compatible library
body: <p>Ok, so I am working on creating a custom standalone library that I intend to use in a Drupal 8 site. Drupal 8 runs on Symfony 2.8.x. I want this code to be usable outside Drupal. So I have focused on making it more Symfony oriented than Drupal oriented.</p>
  
  <p>What I have found, thus far, with all my searching, is that Symfony requires you to write a bunch of config declarations in DependencyInjection/Configuration.php. As well as service declarations in a MyBundleExtension.php file.</p>
  
  <p>What I have NOT found is a simple way to say "Hey, I want this config parameter in this standalone (not at all a controller) class". So I wrote the class you see below.</p>
  
  <p>Is there a better way to handle this?</p>
  
  <p>Code: <a href="http://pastebin.com/pdp53kxe" rel="nofollow noreferrer">http://pastebin.com/pdp53kxe</a></p>
  
  <p>Also, will this create any problems with loading services?</p>
  
  <p>At some point I have to deal with dependency injection and actually new up what we want to inject. Still not sure how I will work that into this standalone library while utilizing the Symfony framework. So suggestions as to how to have Symfony wire that up for me would be great.</p>
  
  <p>My basic question here is about using Symfony in a library setting. Where you would not expect to just need the variables within a controller context.</p>