Exemple #1
0
 public function bar($productName)
 {
     $event = new DemoEvent('DemoEvent');
     EventManager::fire($event);
     $container = $this->app->getServiceContainer();
     $shop = $container->get('shop');
     $log = new LogHandler();
     $shopProxy = Proxy::newProxyInstance($shop, $log);
     $shopProxy->buy($productName);
     return View::render('Demo:Foo:bar.php', ['controllerName' => 'FooController', 'actionName' => 'bar']);
 }
Exemple #2
0
 public function index()
 {
     return View::render('Index:Index:index.php', ['name' => 'Minor']);
 }