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']); }
public function index() { return View::render('Index:Index:index.php', ['name' => 'Minor']); }