php - Symfony2 - register vendor as service -


i want register vendor library service, doctrine, can access via $container->get('doctrine'). want register way vendors, example phpexcel ($container->get('phpexcel')).

see services.yml file liuggio/excelbundle

parameters:     xls.phpexcel.class: phpexcel  services:     xls.phpexcel:         class: %xls.phpexcel.class% 

and $container->get('xls.phpexcel');


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -