Skip to content

Commit

Permalink
Refactory LoggerAwareTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
gpupo committed Apr 10, 2018
1 parent 3bbcab0 commit 20475bb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Tools\Datetime\Holidays
- [x] Get type float
- [x] Get type boolean

### Common\Traits\LoggerTrait
### Common\Traits\LoggerAwareTrait


- [x] Implements logger interface
Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/testdox.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Tools\Datetime\Holidays
- [x] Get type float
- [x] Get type boolean

### Common\Traits\LoggerTrait
### Common\Traits\LoggerAwareTrait


- [x] Implements logger interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

namespace Gpupo\Common\Traits;

trait LoggerTrait
trait LoggerAwareTrait
{
use \Psr\Log\LoggerTrait;
use \Psr\Log\LoggerAwareTrait;

public function getLogger()
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/HasLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
namespace Gpupo\Tests\Common\Objects;

use Gpupo\Common\Interfaces\LoggerInterface;
use Gpupo\Common\Traits\LoggerTrait;
use Gpupo\Common\Traits\LoggerAwareTrait;

class HasLogger extends AbstractObject implements LoggerInterface
{
use LoggerTrait;
use LoggerAwareTrait;
}
2 changes: 1 addition & 1 deletion tests/Traits/LoggerTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* @coversNothing
*/
class LoggerTraitTest extends TestCaseAbstract
class LoggerAwareTraitTest extends TestCaseAbstract
{
public function testImplementsLoggerInterface()
{
Expand Down

0 comments on commit 20475bb

Please sign in to comment.