inroutephp / inroute

Generate http routing and dispatching middleware from docblock annotations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For optional contructor parameters injection should also be otional

hanneskod opened this issue · comments

For the constructor

function __construct($x = '') {}

inroute enforces $x to be injected. But this is not necessary. Injectiong $x should be optional, as the language specs suggests...