Hello. I currently have a package built in psr4 style.
If I autoload the package and take out the defined namespace in that package I can $loader->registerDirs() and point to the src directory and Phalcon recognizes the controller.
<?php
$loader = new Loader();
$loader->registerDirs(array(
__DIR__.'/controllers/',
__DIR__.'/models/',
__DIR__.'/../packages/appstack/robots/src'
))->register();
If I put the namesspace back, it no longer finds the controller.
<?php
namespace MyPackage\Robots;
use \Phalcon\Mvc\Controller;
class RobotController extends Controller
{
I want to be able to create /packages/myapp/blog/BlogController.php and /packages/myapp/store/StoreController.php that are autoload via composer and recognized by Phalcon to find the controllers and models within