example development application php laravel laravel-5 laravel-5.1 classloader

php - development - playframework java



Cómo agregar ClassLoader en Laravel 5 (0)

Quiero agregar mi clase a classloader por este comando

$loader = new /Composer/Autoload/ClassLoader(); $loader->addPsr4(''test//', __DIR__ . ''/../..'' . ''/modules/test''); $loader->register();

pero la dosis no funciona y no hay error
dd($loader) :

ClassLoader {#470 ▼ -prefixLengthsPsr4: array:1 [▼ "t" => array:1 [▶] ] -prefixDirsPsr4: array:1 [▼ "test/" => array:1 [▼ 0 => "C:/wamp/www/app/Http/Controllers/admin/../../modules/test" ] ] -fallbackDirsPsr4: [] -prefixesPsr0: [] -fallbackDirsPsr0: [] -useIncludePath: false -classMap: [] -classMapAuthoritative: false }