Code Monkey home page Code Monkey logo

Comments (4)

marc-mabe avatar marc-mabe commented on June 14, 2024

Thanks for your bug report - I can reproduce this bug -> the bug was introduced in 2.6.0 /:
We'll check how to fix this.

@weierophinney @ezimuel I think is has something todo with the server manager v2 / v3 compatibility - see #22 #69

@Marat-Tanalin To fix your issue you should use camalCase or lower case but don't separate by _. exception_handler and exceptionHandler works fine

from zend-cache.

marc-mabe avatar marc-mabe commented on June 14, 2024

@weierophinney @ezimuel Should we add also all underscore variants to the list of aliases?
-> this could be a lot as we have already a lot.

Current snipped just for 5 storage plugins:

    protected $aliases = [
        'clearexpiredbyfactor' => Plugin\ClearExpiredByFactor::class,
        'clearExpiredByFactor' => Plugin\ClearExpiredByFactor::class,
        'ClearExpiredByFactor' => Plugin\ClearExpiredByFactor::class,
        'exceptionhandler'     => Plugin\ExceptionHandler::class,
        'exceptionHandler'     => Plugin\ExceptionHandler::class,
        'ExceptionHandler'     => Plugin\ExceptionHandler::class,
        'ignoreuserabort'      => Plugin\IgnoreUserAbort::class,
        'ignoreUserAbort'      => Plugin\IgnoreUserAbort::class,
        'IgnoreUserAbort'      => Plugin\IgnoreUserAbort::class,
        'optimizebyfactor'     => Plugin\OptimizeByFactor::class,
        'optimizeByFactor'     => Plugin\OptimizeByFactor::class,
        'OptimizeByFactor'     => Plugin\OptimizeByFactor::class,
        'serializer'           => Plugin\Serializer::class,
        'Serializer'           => Plugin\Serializer::class
    ];

from zend-cache.

Marat-Tanalin avatar Marat-Tanalin commented on June 14, 2024

If plugin names with underscore-separated words cannot be used anymore, documentation should probably account for this. Namely, doc/book/storage/adapter.md contains exception_handler multiple times.

from zend-cache.

weierophinney avatar weierophinney commented on June 14, 2024

Should we add also all underscore variants to the list of aliases?

If they're commonly used, yes, we should add aliases for them, @marc-mabe ; do you want to do this?

@Marat-Tanalin it's not that they cannot be used, but that zend-servicemanager v3 no longer does normalization. v2 would strip out non-alphanumeric characters from the service name to perform lookups, while v3 does strict literal matching. As such, if we create aliases using the most common separator characters, we can still use them.

from zend-cache.

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.