Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. namespace Clevispace;
  4.  
  5. use Nette\DI;
  6.  
  7.  
  8. class ComponentFactory extends DI\Container
  9. {
  10.  
  11.         /**
  12.          * @param  \Nette\DI\Container
  13.          */
  14.         public function __construct(DI\Container $context)
  15.         {
  16.                 $this->context = $context;
  17.         }
  18.  
  19.  
  20.  
  21.         public function createLoginForm()
  22.         {
  23.                 return new Forms\LoginForm($this->context->user);
  24.         }
  25.  
  26. }