HosipLan

Untitled

Feb 3rd, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. # neon
  2. factories:
  3.     foo:
  4.         class: LoginForm(@user)
  5.  
  6. # presenter
  7.  
  8. protected function createComponentLoginForm()
  9. {
  10.     return $this->getContext()->createFoo();
  11. }
  12.  
  13. # komponenta
  14.  
  15. class LoginForm extends Nette\Application\UI\Form
  16. {
  17.     private $user;
  18.     public function __construct($user)
  19.     {
  20.         parent::__construct();
  21.         $this->user = $user;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment