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
Post a Comment