GithubHelp home page GithubHelp logo

Comments (4)

DjordyKoert avatar DjordyKoert commented on June 1, 2024

it seems like Symfony's routing component is struggling to parse your annotations. I am assuming this is happening because of some custom logic that you have written to generate your routes (in ApiRouteDescriber/ApiRouteAnnotationLoader?)

from nelmioapidocbundle.

Herdion avatar Herdion commented on June 1, 2024

I just joined this project and was tasked with upgrading and I'm facing this error.
So the code wasn't written by me.

In the previous version in symfony 5.2, everything worked

Below I am attaching screenshots of the ApiRouteDescriber/ApiRouteAnnotationLoader you mentioned.

image
image

Do you need any more photos, unfortunately I cannot share the code of the project as a whole because it is the property of the company.

Maybe with your help I will be able to solve this problem that I have been stuck on for another day.

from nelmioapidocbundle.

DjordyKoert avatar DjordyKoert commented on June 1, 2024

I can only recommend you to debug Symfony's internals and start working from the source of the error (symfony/routing/Loader/AttributeClassLoader.php:219). Debug the 4 different variables that are used on that line and work from there https://github.com/symfony/routing/blob/f2591fd1f8c6e3734656b5d6b3829e8bf81f507c/Loader/AttributeClassLoader.php#L219

I assume that the ApiRouteAnnotationLoader is extending https://github.com/symfony/routing/blob/6.4/Loader/AnnotationClassLoader.php with an alias of AnnotatedRouteControllerLoader which in turn extends https://github.com/symfony/routing/blob/6.4/Loader/AttributeClassLoader.php. If I am correct then the source of the error might be coming from the parent::addRoute(...) method call that is happening.

Hope my small insight can help you!

from nelmioapidocbundle.

DjordyKoert avatar DjordyKoert commented on June 1, 2024

I will go ahead and close this now :)

from nelmioapidocbundle.

Related Issues (20)

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.