Coder Social home page Coder Social logo

Comments (4)

basz avatar basz commented on August 31, 2024

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.

CreativeNative avatar CreativeNative commented on August 31, 2024

Ahh, thanks a lot. Strange, but works for me.

from slmlocale.

juriansluiman avatar juriansluiman commented on August 31, 2024

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.

CreativeNative avatar CreativeNative commented on August 31, 2024

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)

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.