| 1 | <?php | ||
| 13 | class LoggingAspect implements Aspect | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * @var LoggerInterface | ||
| 17 | */ | ||
| 18 | private $logger; | ||
| 19 | |||
| 20 | public function __construct(LoggerInterface $logger) | ||
| 24 | |||
| 25 | /** | ||
| 26 | * Writes a log info before method execution | ||
| 27 | * | ||
| 28 | * @param MethodInvocation $invocation | ||
| 29 |      * @Before("@execution(Go\Symfony\GoAopBundle\Tests\TestProject\Annotation\Loggable)") | ||
| 30 | */ | ||
| 31 | public function beforeMethod(MethodInvocation $invocation) | ||
| 35 | } | ||
| 36 |