Git Product home page Git Product logo

middlewares's Introduction

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte

Usage

To install latest version of contributte/middlewares use Composer.

composer require contributte/middlewares

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^0.13.0 master 3.2+ >=8.1
stable ^0.12.0 master 3.2+ >=8.1

Development

See how to contribute to this package. This package is currently maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

middlewares's People

Contributors

f3l1x avatar hekystyle avatar kralmichal avatar mabar avatar martenb avatar petrparolek avatar roman3349 avatar romanhodulak avatar sendimyrkr avatar sotekie avatar tkliner avatar vanam avatar vnarek avatar vody105 avatar vojtechmares avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

middlewares's Issues

TryCatchMiddleware::log() should not be private

I think that TryCatchMiddleware::log() should not be private so I can extend it easily without copying the whole class.

What I'm trying to achieve is to log exception object under exception key in context because sentry's monolog handler expect the exception to be there so it can be fully logged to sentry including stacktrace and so.

Playground or "how to start" docs part missing

I'm missing some real-life example or playground, something like to "how to start" or just link to some website.

For me, personally, the main problem is the first step. I will install the package, setup the index or bootstrap, but what next?

Does that mean that when I configure the List in the config.neon file then these middlewares will be automatically applied to all website requests? What can I do when I wnat some middleware to be applied just on some of them (eg. authentication middleware only for admin module).

AbstractApplication - on<Event>events - why not using Nette\SmartObject?

When using Nette\SmartObject you no longer need to have that ::dispatch() method that only fires all anonymous functions in an array. The method name is maybe also a little bit misleading. Is usually stand for "transfer something to something else", for example and request..

Also, shouldn't it be called for example ::addOnError() instead of onError()?

Tracy panel

  • display middlewares in order they are used
  • show which middleware returned response (if possible)

PresenterMiddleware `throws $e` even if catchException is true.

Hello,

I am not sure why PresenterMiddleware.php throws exception on line 111. I think if error presenter handles the exception we should just return $psr7Response converted from the error presenter result. If it's intentional how should I handle forming json request with an error inside the error presenter? return new JsonResponse gets tossed out.

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.