we in symfony this:
/** * @route("/", defaults={"id" = 1}) * @route("/{id}") */ public function showaction($id) { } i similar routing in custom framework. how doc can pursed in code?
symfony using doctrine\common\annotations\annotationreader class parse docblocks , search annotations. using outside symfony framework using class: read annotation , whatever custom annnotation.
check annotationreader documentation , this blog entry detailed instruction how create own annotation (this symfony related blog post it's not using of symfony features apart service container there )
Comments
Post a Comment