Solved Incorrect type hint in XF\SubContainer\Oembed::controller

This topic has been solved
P

Painbaker

Guest
PHP:

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...