Comments (9)
_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.
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.
Yes, indeed, just realized that I read about that somewhere in docs :)
Thought, still a solution to ignore a bundle is needed...
from jmsi18nroutingbundle.
Changed title
from jmsi18nroutingbundle.
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.
So there is RouteExclusionStrategyInterface the problem is how can we define it ?In config.yml it is imposible now..
from jmsi18nroutingbundle.
Why is it impossible?
from jmsi18nroutingbundle.
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.
This should now be easily implementable in your own code.
from jmsi18nroutingbundle.
Related Issues (20)
- translated routes defaulting to Russian when default locale is en
- Document the secret "sticky locale" functionality HOT 1
- Make the "sticky locale" functionality more configurable HOT 1
- Sensio Extra bundle deprecated
- Deprecation: A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0. HOT 1
- Route annotation cache
- Breaks with Symfony 4.2.8 HOT 2
- Unable to generate a URL for the named route when locale not available HOT 1
- Attempted to call an undefined method named "setSiteAccess"
- GetResponseForExceptionEvent::getException() is deprecated HOT 2
- Fix symfony 5 deprecations HOT 4
- Heavy access to session read when disabling i18n in route options
- PHP8 Support HOT 2
- PrependConfig not applyable
- The "Psr\Container\ContainerInterface" autowiring alias is deprecated HOT 4
- Removing a locale
- Compatibility issues with Symfony\Component\Routing\Router functions
- Support symfony 6
- PHP Fatal error: Declaration of must be compatible with HOT 10
- Issues with Symfony 6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmsi18nroutingbundle.