Allow developers to catch MethodNotAllowedHttpException. Fixes #80.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Adding some error handling methods to the response builder.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Set dispatch to check for isSuccessfull
Merge pull request #88 from matula/master

Set dispatch to check for isSuccessful
Tidying up and refactoring the response builder.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixing break to authentication middleware where protection is void if no accept header is sent. Fixes #84 and closes #87.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Test coverage for response builder.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Added PHPCS dev dependency.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Overloaded __call in controller to allow for easier returning of ResponseBuilder responses.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Change code to status_code.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Missing docblock param
Enable conditional requests
Fix Router api settings
Updated docblock

resolveFractal returns an instance rather then void.
Merge pull request #97 from bweston92/master

Updated docblock
Refactoring of authentication. This should fix #56, #92, and closes #75.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Merge pull request #91 from lucasmichot/304

Enable conditional requests
Tweaking some CS things.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Minor refactoring and keeping things DRY.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Allow returning of non-morphable responses like BinaryFileResponse. Fixes #86.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>