Assuming that AppWrapper is in the \My\Silex\Application namespace as well, the following confuses the code hinting:
<?php
namespace My\Silex\Application;
use \Silex\Application;
use \Silex\ControllerProviderInterface;
use \Silex\ControllerCollection;
class AppControllerProvider implements ControllerProviderInterface
{
public function connect(Application $appOrig)
{
$app = new AppWrapper($appOrig);
// $app-> triggers "could not resolve first part of 'AppWrapper'
}
}
Meanwhile, the following works just fine (but is not and should not be required):
<?php
namespace My\Silex\Application;
use \Silex\Application;
use \Silex\ControllerProviderInterface;
use \Silex\ControllerCollection;
class AppControllerProvider implements ControllerProviderInterface
{
public function connect(Application $appOrig)
{
$app = new \My\Silex\Application\AppWrapper($appOrig);
// $app-> triggers code completion as expected
}
}
Assuming that
AppWrapperis in the\My\Silex\Applicationnamespace as well, the following confuses the code hinting:Meanwhile, the following works just fine (but is not and should not be required):