Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR-3 Classes #1888

Merged
merged 7 commits into from Jan 23, 2014
Merged

PSR-3 Classes #1888

merged 7 commits into from Jan 23, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jan 23, 2014

When phalcon.register_psr3_classes php.ini option is set, the following things are registered:

  • interfaces:
    • Psr\Log\LoggerAwareInterface
    • Psr\Log\LoggerInterface
  • classes:
    • Psr\Log\AbstractLogger
    • Psr\Log\InvalidArgumentException
    • Psr\Log\LogLevel
    • Psr\Log\NullLogger
  • traits (only for PHP 5.4+):
    • Psr\Log\LoggerAwareTrait
    • Psr\Log\LoggerTrait

Plus, if PHP is 5.3.9 or newer, Phalcon\Logger\Adapter implements Psr\Log\LoggerInterface. Also, Adapter and derived classes may throw Psr\Log\InvalidArgumentException instead of Phalcon\Logger\Exception when the input arguments are not valid.

phalcon pushed a commit that referenced this pull request Jan 23, 2014
@phalcon phalcon merged commit 626f01b into phalcon:1.3.0 Jan 23, 2014
@phalcon
Copy link
Collaborator

phalcon commented Jan 23, 2014

Thanks

@ghost ghost deleted the psr-3-logger branch January 24, 2014 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants