Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: ic L…
Added: Oct 31, 2016 8:37 AM
Modified: Oct 31, 2016 10:16 AM
Views: 29
Tags: ide php
  1. /* @var $httpRequest \Nette\Http\Request */
  2. $httpRequest = $container->getByType(Nette\Http\Request::class); // nová verze php
  3. //$httpRequest = $container->getByType('Nette\Http\Request'); // stará verze php
  4.