P
Painbaker
Guest
PHP:
Continue reading...
Code:
<?php
namespace XF\SubContainer;
class Oembed extends AbstractSubContainer
{
public function initialize()
{
$container = $this->container;
$container['controller'] = function($c)
{
return new \XF\Oembed\Controller($this->app, $this->app->request());
};
}
/**
* @return \XF\Proxy\Controller <<< \XF\Oembed\Controller
*/
public function controller()
{
return $this->container['controller'];
}
}
Continue reading...