1 | <?php |
||
27 | class RayAspectKernel implements AspectDriverInterface |
||
28 | { |
||
29 | /** @var Container */ |
||
30 | protected $app; |
||
31 | |||
32 | /** @var array */ |
||
33 | protected $configure; |
||
34 | |||
35 | /** @var Compiler */ |
||
36 | protected $compiler; |
||
37 | |||
38 | /** @var Filesystem */ |
||
39 | protected $filesystem; |
||
40 | |||
41 | /** @var bool */ |
||
42 | protected $cacheable = false; |
||
43 | |||
44 | /** @var \Ytake\LaravelAspect\Modules\AspectModule */ |
||
45 | protected $aspectResolver; |
||
46 | |||
47 | /** |
||
48 | * RayAspectKernel constructor. |
||
49 | * @param Container $app |
||
50 | * @param Filesystem $filesystem |
||
51 | * @param array $configure |
||
52 | */ |
||
53 | public function __construct(Container $app, Filesystem $filesystem, array $configure) |
||
62 | |||
63 | /** |
||
64 | * @param null $module |
||
65 | * |
||
66 | * @throws ClassNotFoundException |
||
67 | */ |
||
68 | public function register($module = null) |
||
76 | |||
77 | /** |
||
78 | * boot aspect kernel |
||
79 | */ |
||
80 | public function dispatch() |
||
93 | |||
94 | /** |
||
95 | * @return Compiler |
||
96 | */ |
||
97 | protected function getCompiler() |
||
101 | |||
102 | /** |
||
103 | * make source compile file directory |
||
104 | * |
||
105 | * @return void |
||
106 | */ |
||
107 | protected function makeCompileDir() |
||
111 | |||
112 | /** |
||
113 | * make aspect cache directory |
||
114 | * |
||
115 | * @return void |
||
116 | */ |
||
117 | protected function makeCacheableDir() |
||
124 | |||
125 | /** |
||
126 | * @param string $dir |
||
127 | * @param int $mode |
||
128 | */ |
||
129 | private function makeDirectories($dir, $mode = 0777) |
||
137 | } |
||
138 |