Skip to content

Instantly share code, notes, and snippets.

@ivastly
Created December 11, 2019 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivastly/cd63510ef06d4e550252c2b35c88ccef to your computer and use it in GitHub Desktop.
Save ivastly/cd63510ef06d4e550252c2b35c88ccef to your computer and use it in GitHub Desktop.
initialize AOP
<?php
use Ivastly\GoAopHelloWorld\Aop\ApplicationAspectKernel;
require_once 'vendor/autoload.php';
$applicationAspectKernel = ApplicationAspectKernel::getInstance();
$applicationAspectKernel->init(
[
'appDir' => __DIR__ . '/..',
'cacheDir' => __DIR__ . '/cache',
'includePaths' => [
__DIR__ . '/src',
],
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment