Some problems with Laravel 4 PSR-0?

I noticed that Laravel 4 uses some of the PSR . I recently installed the php-cs-fixer tool for SensioLabs, which detects and fixes most problems when we want to follow PHP coding standards.

I executed the command in my bare copy of Laravel 4, and this is a magazine.

php-cs-fixer fix app/
! Class User in /home/javier/Code/laravel/app/models/User.php should have at least a vendor namespace according to PSR-0 rules
! Class DatabaseSeeder in /home/javier/Code/laravel/app/database/seeds/DatabaseSeeder.php should have at least a vendor namespace according to PSR-0 rules
! Class HomeController in /home/javier/Code/laravel/app/controllers/HomeController.php should have at least a vendor namespace according to PSR-0 rules
! Class BaseController in /home/javier/Code/laravel/app/controllers/BaseController.php should have at least a vendor namespace according to PSR-0 rules

The output shows some problems associated with the PSR-0 startup standard.
What's going on here?

Any help was appreciated.

+5
source share
1 answer

After reporting an error on the laravel gitar server, I get a great @javiervd answer .

Here is the answer

, "app" PSR-0, classmap PSR-0.

@daylerees

, Laravel ?

     

, Laravel , , root. , " " . .

.

+5

All Articles