Comments (4)
Try with SlmLocale\Strategy\UriPathStrategy as the key
Op 12 mrt. 2014 om 16:35 heeft Oskar Golde [email protected] het volgende geschreven:
I followed your instructions, but I get ServiceNotFoundException, when I insert
''' 'strategies' => array('uripath', 'acceptlanguage'),Tested with ZF 2.2.6 and ZF 2.3.
''' php
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for uripath' in /mnt/hgfs/www/sicily-holidays.eu/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:526 Stack trace: #0 /mnt/hgfs/www/sicily-holidays.eu/trunk/vendor/slm/locale/src/SlmLocale/Service/DetectorFactory.php(90): Zend\ServiceManager\ServiceManager->get('uripath') #1 /mnt/hgfs/www/sicily-holidays.eu/trunk/vendor/slm/locale/src/SlmLocale/Service/DetectorFactory.php(65): SlmLocale\Service\DetectorFactory->addStrategies(Object(SlmLocale\Locale\Detector), Array, Object(Zend\ServiceManager\ServiceManager)) #2 [interna l function]: SlmLocale\Service\DetectorFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'slmlocalelocale...', 'SlmLocale\Local...') #3 /mnt/hgfs/www/sicily-holidays.eu/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(905): call_us in /mnt/hgfs/www/sicily-holidays.eu/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 526
'''—
Reply to this email directly or view it on GitHub.
from slmlocale.
Ahh, thanks a lot. Strange, but works for me.
from slmlocale.
As far as I know, the short name should have worked as well. I am reopening it now, to make sure I'll investigate it further. For now, the FQCN works for sure.
from slmlocale.
This issue seems to be the same problem like here: #64
Actually I had version v0.0.1 installed, because for composer that seems to be the "stable" version. Now the short names are working like expected.
Maybe it's a good idea to release the latest code as a stable version.
from slmlocale.
Related Issues (20)
- PHP 8.0 support HOT 7
- how can i render combobox : $this->LocaleMenu() HOT 5
- Explain pls why you're use "-" as delimiter instead of "_" in all examples on the page HOT 6
- Translator can't recognize slm_locale language HOT 8
- HostStrategy forwards to domain.de-de HOT 5
- Where are the versions gone above 1.* ?
- How to install this module? HOT 15
- Strange behaviour of the routes and asset paths broken HOT 4
- Conflict with the module ZfTable | Deactivate dynamically the locale strategy HOT 3
- SlmLocale doesn't work with method router and verb = POST HOT 2
- Second strategy override first one when adding two identical strategies HOT 3
- ZF3 compatibility HOT 19
- How could i switch Locale? HOT 1
- Drop unsupported PHP versions HOT 8
- Add code coverage HOT 1
- create develop branch HOT 2
- Packagist did not update new version HOT 1
- Missing ServiceLocator 2.x dependency injection for UriPathStrategy HOT 11
- Breaks console usage HOT 2
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 slmlocale.