prolificinteractive/mabi — pull request #44 by ppatriotis (2014-03-17 17:38:25+00:00)
Title: Feature/annotation updates

Implemented the following annotation changes:

*RegEx Replace*

@middleware (.*) -> @Middleware("$1")

@docs-attach-model (.*) -> @Docs\AttachModel("$1")

@docs-param (.*) (.*) (.*) optional (.*) -> @Docs\\\\Param(“$1”,type=”$2”,location=”$3”,required=false,description=”$4”)
@docs-param (.*?) (.*?) (.*?) required (.*?) -> @Docs\\\\Param(“$1”,type=”$2”,location=”$3”,required=true,description=”$4”)

@field (.*) -> @Field\\\\$1

*Normal Replace*

@model NoController -> @Model\NoController
@model ApplicationModel -> @Model\Application

@docs show-model -> @Docs\ShowModel

@endpoint ignore -> @Endpoint\Ignore

Using doctrine's annotation parser.