I'd like to call an .yml file located in app/config from my controller.
Here is the code :
$menu_yml = __DIR__.'%kernel.root_dir%/app/config/main_menu.yml';
$menu = Yaml::parse($menu_yml);
I've tried many options, from this to FileLocator
or Finder
, but i can't reach out of the bundle. Any ideas ?
Thanks a lot !