HosipLan

Untitled

Sep 18th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. class TexyContainer extends Nette\DI\Container
  2. {
  3.  
  4.     protected function createServiceTexy()
  5.     {
  6.         $texy = new Texy()
  7.         // konfigurace
  8.  
  9.         return $texy;
  10.     }
  11.  
  12.  
  13.     public function createTexyla()
  14.     {
  15.         $texyla = new Texyla();
  16.         // konfigurace
  17.  
  18.         return $texyla;
  19.     }
  20.  
  21. }
  22.  
  23. // přidáš do configu
  24.  
  25. // v presenteru
  26.  
  27. $texyla = $this->context->texy->createTexyla()
Advertisement
Add Comment
Please, Sign In to add comment