1 | <?php |
||
38 | class RayAspectKernel implements AspectDriverInterface |
||
39 | { |
||
40 | /** @var Container|\Illuminate\Container\Container */ |
||
41 | protected $app; |
||
42 | |||
43 | /** @var array */ |
||
44 | protected $configure; |
||
45 | |||
46 | /** @var Compiler */ |
||
47 | protected $compiler; |
||
48 | |||
49 | /** @var Filesystem */ |
||
50 | protected $filesystem; |
||
51 | |||
52 | /** @var bool */ |
||
53 | protected $cacheable = false; |
||
54 | |||
55 | /** @var bool */ |
||
56 | protected $forceCompile = false; |
||
57 | |||
58 | /** @var AspectModule[] */ |
||
59 | protected $modules = []; |
||
60 | |||
61 | /** @var string */ |
||
62 | private $mapFile = 'aspect.map.serialize'; |
||
63 | |||
64 | /** |
||
65 | * RayAspectKernel constructor. |
||
66 | * |
||
67 | * @param Container $app |
||
68 | * @param Filesystem $filesystem |
||
69 | * @param array $configure |
||
70 | * |
||
71 | * @throws ClassNotFoundException |
||
72 | */ |
||
73 | public function __construct(Container $app, Filesystem $filesystem, array $configure) |
||
82 | |||
83 | /** |
||
84 | * @param string $module |
||
85 | * |
||
86 | * @throws ClassNotFoundException |
||
87 | */ |
||
88 | public function register(string $module = null): void |
||
95 | |||
96 | /** |
||
97 | * weaving |
||
98 | * |
||
99 | * @throws \Doctrine\Common\Annotations\AnnotationException |
||
100 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
101 | * @throws \ReflectionException |
||
102 | */ |
||
103 | public function weave(): void |
||
119 | |||
120 | /** |
||
121 | * @param Container $container |
||
122 | * |
||
123 | * @return ContainerInterceptor |
||
124 | */ |
||
125 | protected function containerAdaptor(Container $container): ContainerInterceptor |
||
129 | |||
130 | /** |
||
131 | * @return Compiler |
||
132 | * @throws \Doctrine\Common\Annotations\AnnotationException |
||
133 | */ |
||
134 | protected function getCompiler(): Compiler |
||
138 | |||
139 | /** |
||
140 | * make source compile file directory |
||
141 | */ |
||
142 | protected function makeCompileDir() |
||
147 | |||
148 | /** |
||
149 | * make aspect cache directory |
||
150 | * |
||
151 | * @codeCoverageIgnore |
||
152 | */ |
||
153 | protected function makeCacheableDir() |
||
160 | |||
161 | /** |
||
162 | * @param string $dir |
||
163 | * @param int $mode |
||
164 | */ |
||
165 | private function makeDirectories(string $dir, int $mode = 0777) |
||
173 | |||
174 | /** |
||
175 | * register Aspect Module |
||
176 | * |
||
177 | * @throws ClassNotFoundException |
||
178 | */ |
||
179 | protected function registerAspectModule() |
||
187 | |||
188 | /** |
||
189 | * @return array |
||
190 | * @codeCoverageIgnore |
||
191 | * |
||
192 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
193 | */ |
||
194 | protected function aspectConfiguration(): array |
||
220 | } |
||
221 |