hearsayit / HearsayRequireJSBundle

RequireJS integration for Symfony2.
130 stars 55 forks source link

Add helper alias in services.yml #73

Open liviucmg opened 10 years ago

liviucmg commented 10 years ago

It would be very useful to add a helper alias in services.yml so that RequireJSHelper can be used inside PHP templates like so:

/* @var Hearsay\RequireJSBundle\Templating\Helper\RequireJSHelper $requireJs */
$requireJs = $view['require_js'];
echo $requireJs->initialize();

Cheers!