Browse Source

Component: Include LogTrait to allow calling log() as in 2.x

Rachman Chavik 11 years ago
parent
commit
7dd997df16
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Controller/Component.php

+ 2 - 0
src/Controller/Component.php

@@ -16,6 +16,7 @@ namespace Cake\Controller;
 
 use Cake\Core\InstanceConfigTrait;
 use Cake\Event\EventListener;
+use Cake\Log\LogTrait;
 
 /**
  * Base class for an individual Component. Components provide reusable bits of
@@ -63,6 +64,7 @@ use Cake\Event\EventListener;
 class Component implements EventListener {
 
 	use InstanceConfigTrait;
+	use LogTrait;
 
 /**
  * Component registry class used to lazy load components.