Git Product home page Git Product logo

requestidbundle's Introduction

I'm a platform engineer at PMG where I build the tooling and applications that power our Alli suite of marketing tools behind the scenes.

I work primarily on AWS with some GCP thrown in here and there, all managed with Terraform. I write code in JavaScript (frontend with React and Backend), Go, PHP, and Python.

You can also find me on...

requestidbundle's People

Contributors

arnedesmedt avatar chrisguitarguy avatar goetas avatar jamiebarbosa avatar morawskim avatar rlanting avatar tourze 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

requestidbundle's Issues

Twig requirements are implicit

Since commit 26247af introduced a requirement for Twig, such requirement should be explicit.
Unfortunately, the commit only changed require-dev section, that is working only when this repository is used standalone (e.g. in testing).
For requirement to be enforced when this repository is used as a dependency, the following section should be added:

"conflict": {
    "twig/twig": "<1.38|>=2,<2.7"
}

RC to actual release

Could we tag 4.0 ? composer validate --strict doesn't seem to like the RC tag, and I think it's stable (enough ?) for an actual release.

Don't Use `Twig_*`

The various Twib_* classes are deprecated in Twig 2.7.

This one is tricky because we don't actually require twig in composer.json but support if if present. Right now we use Twig_Extension and Twig_SimpleFunction.

Maybe just erroring here if they don't exist and people are requesting twig? v1.34 introduced the aliased classes.

Monolog 3 is not supported

Hello

To reproduce bug try following commands:

Create a new project composer create-project symfony/skeleton request-id-bundle-example
Install monolog composer require monolog
Install bundle composer require chrisguitarguy/request-id-bundle
Configure this bundle (enable integration with Monolog).

On PHP 8.1 you should get an error, when you try to access /

Chrisguitarguy\RequestId\Monolog\RequestIdProcessor::__invoke(): Argument #1 ($record) must be of type array, Monolog\LogRecord given, called in /home/marcin/projekty/requestidbundle-test/vendor/monolog/monolog/src/Monolog/Logger.php on line 331

Monolog 3 requires PHP 8.1, but also has introduced some changes in API - UPGRADE instructions for Monolog 3

Log records have been converted from an array to a Monolog\LogRecord object with public (and mostly readonly) properties. e.g. instead of doing $record['context'] use $record->context. In formatters or handlers if you rather need an array to work with you can use $record->toArray() to get back a Monolog 1/2 style record array. This will contain the enum values instead of enum cases in the level and level_name keys to be more backwards compatible and use simpler data types.

We need to change types for Chrisguitarguy\RequestId\Monolog\RequestIdProcessor::__invoke to support Monolog 3 and previous versions. Because this bundle support PHP 7.4 we cannot use Union types.
My idea is to remove types and check variable's type $record in method.

I will prepare PR soon (to end of this week).

Support ramsey/uuid 4.X

Should be fairly easy to do as the only thing we rely on is a UUID factory and Uuid::__toString.

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.