Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Use prefix in Logger abstract factory #4254

Merged

Conversation

weierophinney
Copy link
Member

Force service prefix in LoggerAbstractServiceFactory

  • To prevent collisions with other abstract factories, the logger
    abstract factory should require that, when requesting a service, the
    service name be prefixed. I chose "Logger", as that's the service type
    being requested.
  • This complements the approach in Create AbstractFactory for Cache #4253 for cache
    objects.
  • Not a BC break, as the LoggerAbstractServiceFactory has not yet been
    released.

* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only @group

- Allows having multiple cache objects by implementing an abstract
  factory.
- When requesting a cache services, prefix with 'Cache\\', but
  configuration omits that prefix for brevity.
- To prevent collisions with other abstract factories, the logger
  abstract factory should require that, when requesting a service, the
  service name be prefixed. I chose "Logger", as that's the service type
  being requested.
- This complements the approach in zendframework#4253 for cache
  objects.
- Not a BC break, as the LoggerAbstractServiceFactory has not yet been
  released.
mwillbanks pushed a commit that referenced this pull request Apr 30, 2013
Created abstract factory for caches …
- Allows having multiple cache objects by implementing an abstract
  factory.
- When requesting a cache services, prefix with 'Cache\', but
  configuration omits that prefix for brevity.

Force service prefix in LoggerAbstractServiceFactory …
- To prevent collisions with other abstract factories, the logger
  abstract factory should require that, when requesting a service, the
  service name be prefixed. I chose Logger, as that's the service type
  being requested.
- This complements the approach in #4253 for cache
  objects.
- Not a BC break, as the LoggerAbstractServiceFactory has not yet been
  released.

[#4254] Remove unneeded annotations …
- per @samsonasik
mwillbanks pushed a commit that referenced this pull request Apr 30, 2013
@mwillbanks mwillbanks merged commit 5230a7a into zendframework:develop Apr 30, 2013
gianarb pushed a commit to zendframework/zend-log that referenced this pull request May 15, 2015
Created abstract factory for caches …
- Allows having multiple cache objects by implementing an abstract
  factory.
- When requesting a cache services, prefix with 'Cache\', but
  configuration omits that prefix for brevity.

Force service prefix in LoggerAbstractServiceFactory …
- To prevent collisions with other abstract factories, the logger
  abstract factory should require that, when requesting a service, the
  service name be prefixed. I chose Logger, as that's the service type
  being requested.
- This complements the approach in zendframework/zf2zendframework/zf2#4253 for cache
  objects.
- Not a BC break, as the LoggerAbstractServiceFactory has not yet been
  released.

[zendframework/zendframework#4254] Remove unneeded annotations …
- per @samsonasik
gianarb pushed a commit to zendframework/zend-log that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants