[
https://issues.apache.org/jira/browse/LOG4PHP-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Grobmeier resolved LOG4PHP-56.
----------------------------------------
Resolution: Fixed
resolved in trunk
> Replace define('LOG4PHP_CONFIGURATION' by static variable
> ---------------------------------------------------------
>
> Key: LOG4PHP-56
> URL: https://issues.apache.org/jira/browse/LOG4PHP-56
> Project: Log4php
> Issue Type: Improvement
> Components: Code
> Affects Versions: 2.2
> Reporter: Christian Hammers
> Priority: Minor
> Fix For: 2.0
>
>
> As you're currently switching to PHP5 OOP code, I would suggest to replace
> this ugly global constant by a static attribute of the LogManager class i.e.
> LogManager::$configFile = ... Or maybe even a constructor/factory argument
> This would have the additional benefit that it could be set by some kind of
> Dependency Injection framework like Spring for Java, although I don't know of
> such is even existing for PHP :) But it might come in the future.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.