fuel / core

Fuel PHP Framework - The core of the Fuel v1 framework
http://fuelphp.com
813 stars 345 forks source link

[Feature] Routes defined by annotations in controllers #1148

Closed tmihalik closed 12 years ago

tmihalik commented 12 years ago

Read annotations from controllers to define routes

WanWizard commented 12 years ago

Don't expect annotations in FuelPHP any day soon. Code has no place in comments, and searching for and parsing annotations will ruin the frameworks speed.

tmihalik commented 12 years ago

I meant this to be an option or module, user can decide to use it or not. Routes generated from annotations could be cached to a file, so it won't ruin the speed. It also can be used for acl, view, cache, request. This technique is already implemented in Symfony framework, and has several advantages: http://symfony.com/doc/master/bundles/SensioFrameworkExtraBundle/index.html