daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AcmeProjectBundle::home.html.twig
  2.    
  3. /path/Symfony/src/Acme/ProjectBundle/Resources/views/home.html.twig
  4.    
  5. //...
  6. use SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator;
  7. use SymfonyBundleFrameworkBundleTemplatingTemplateNameParser;
  8.  
  9. class DefaultController extends AbstractController
  10. {
  11.     public function indexAction(TemplateNameParser $parser, TemplateLocator $locator)
  12.     {
  13.         $path = $locator->locate($parser->parse('AcmeProjectBundle::home.html.twig'));
  14.         //...
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top