zendframework / zend-log

Log component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 51 forks source link

Class 'PsrPlaceholder' mapping error #61

Closed sourcedump closed 6 years ago

sourcedump commented 7 years ago

Hello! into the file 'ProcessorPluginManager.php' of Zend-Log there is a mapping error: the class 'PsrPlaceholder' is named as 'PsrPlaceHolder' at line 23 and 30.

    protected $aliases = [
        'backtrace'      => Processor\Backtrace::class,
        'psrplaceholder' => Processor\PsrPlaceHolder::class,
        'referenceid'    => Processor\ReferenceId::class,
        'requestid'      => Processor\RequestId::class
    ];
    protected $factories = [
        Processor\Backtrace::class      => InvokableFactory::class,
        Processor\PsrPlaceHolder::class => InvokableFactory::class,
        Processor\ReferenceId::class    => InvokableFactory::class,
        Processor\RequestId::class      => InvokableFactory::class,
        // Legacy (v2) due to alias resolution; canonical form of resolved
        // alias is used to look up the factory, while the non-normalized
        // resolved alias is used as the requested name passed to the factory.
        'zendlogprocessorbacktrace'      => InvokableFactory::class,
        'zendlogprocessorpsrplaceholder' => InvokableFactory::class,
        'zendlogprocessorreferenceid'    => InvokableFactory::class,
        'zendlogprocessorrequestid'      => InvokableFactory::class,
    ];

This error cause a problem if you want to initialize the Zend-Log with the ServiceManager configuration.

Bye!

samsonasik commented 6 years ago

should be close-able in favor of https://github.com/zendframework/zend-log/commit/acee537cbae0f846ba64477898fca5ae55fe02c3