Git Product home page Git Product logo

Comments (9)

stof avatar stof commented on September 28, 2024

_CheAdminBundle is not the route name. It is just a random key used to import a resource. Route names are defined in the route definition, not when importing resources

from jmsi18nroutingbundle.

stof avatar stof commented on September 28, 2024

btw, the key is never used for resources. It simply needs to be unique inside the file because an associative array cannot have the same key twice (and it is needed because it is an associative array)

from jmsi18nroutingbundle.

 avatar commented on September 28, 2024

Yes, indeed, just realized that I read about that somewhere in docs :)

Thought, still a solution to ignore a bundle is needed...

from jmsi18nroutingbundle.

 avatar commented on September 28, 2024

Changed title

from jmsi18nroutingbundle.

schmittjoh avatar schmittjoh commented on September 28, 2024

I think we could start with separating the exclusion logic from the current loader, and providing an interface for it. This could look something like the following:

interface RouteExclusionStrategyInterface
{
    function shouldSkipRoute(Route $route);
}

from jmsi18nroutingbundle.

pgouv avatar pgouv commented on September 28, 2024

So there is RouteExclusionStrategyInterface the problem is how can we define it ?In config.yml it is imposible now..

from jmsi18nroutingbundle.

schmittjoh avatar schmittjoh commented on September 28, 2024

Why is it impossible?

from jmsi18nroutingbundle.

pgouv avatar pgouv commented on September 28, 2024

I dont know how to do it.. How can configure it to use my RouteExclusionStrategyInterface implementation ? Only solution i found is to add it at JMS\I18nRoutingBundle\Resources\config\services.xml but this means that i have to modify your bundle... Is there a way to set the class from config.yml ? Configuration.php doesnt allow anything

from jmsi18nroutingbundle.

schmittjoh avatar schmittjoh commented on September 28, 2024

This should now be easily implementable in your own code.

from jmsi18nroutingbundle.

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.