Giter Site home page Giter Site logo

bitexpert / adrenaline Goto Github PK

View Code? Open in Web Editor NEW
31.0 8.0 4.0 132 KB

[DEPRECATED] A PSR-7 micro framework built on top of the Adroit middleware to speed up your development ;)

License: Apache License 2.0

PHP 100.00%
psr-7 middleware micro-framework php7 adroit

adrenaline's People

Contributors

dropdevcoding avatar jasonmccreary avatar shochdoerfer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adrenaline's Issues

Stratigility upgrade shows warning

After upgrading Stratigility and running the unit tests the following warning shows up:

Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please 
see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how 
to update your application to remove this message.

Looks like we need to change our implementation a bit.

JsonResponder and TwigResponder don't respect status set in payload

In JsonResponder the status set in payload is not respected, since it's implemented like that:

return $response->withStatus(200);

This should be fixed by using the same logic used in other responders:

$status = $payload->getStatus() ?: 200;
return $response->withStatus($status);

Introduce a Payload interface for Adrenaline

Since Adrenaline uses the Payload interface of Adroit internally but we use getStatus() and getValue()
in our responders, we should introduce an Adrenaline interface for payload inheriting from Adroit's Payload interface to ensure presence of these functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.