1 | <?php |
||
31 | class RayAspectKernel implements AspectDriverInterface |
||
32 | { |
||
33 | /** @var Container|\Illuminate\Container\Container */ |
||
34 | protected $app; |
||
35 | |||
36 | /** @var array */ |
||
37 | protected $configure; |
||
38 | |||
39 | /** @var Compiler */ |
||
40 | protected $compiler; |
||
41 | |||
42 | /** @var Filesystem */ |
||
43 | protected $filesystem; |
||
44 | |||
45 | /** @var bool */ |
||
46 | protected $cacheable = false; |
||
47 | |||
48 | /** @var AspectModule */ |
||
49 | protected $aspectResolver; |
||
50 | |||
51 | /** @var AspectModule[] */ |
||
52 | protected $registerModules = []; |
||
53 | |||
54 | /** @var AspectModule[] */ |
||
55 | protected $modules = []; |
||
56 | |||
57 | /** @var string */ |
||
58 | private $mapFile = 'aspect.map.serialize'; |
||
59 | |||
60 | /** |
||
61 | * RayAspectKernel constructor. |
||
62 | * |
||
63 | * @param Container $app |
||
64 | * @param Filesystem $filesystem |
||
65 | * @param array $configure |
||
66 | */ |
||
67 | public function __construct(Container $app, Filesystem $filesystem, array $configure) |
||
76 | |||
77 | /** |
||
78 | * @param string $module |
||
79 | * |
||
80 | * @throws ClassNotFoundException |
||
81 | */ |
||
82 | public function register(string $module = null) |
||
89 | |||
90 | /** |
||
91 | * weaving |
||
92 | */ |
||
93 | public function weave() |
||
106 | |||
107 | /** |
||
108 | * @param Container $container |
||
109 | * |
||
110 | * @return ContainerInterceptor |
||
111 | */ |
||
112 | protected function containerAdaptor(Container $container): ContainerInterceptor |
||
116 | |||
117 | /** |
||
118 | * @return Compiler |
||
119 | */ |
||
120 | protected function getCompiler(): Compiler |
||
124 | |||
125 | /** |
||
126 | * make source compile file directory |
||
127 | */ |
||
128 | protected function makeCompileDir() |
||
132 | |||
133 | /** |
||
134 | * make aspect cache directory |
||
135 | * |
||
136 | * @codeCoverageIgnore |
||
137 | */ |
||
138 | protected function makeCacheableDir() |
||
145 | |||
146 | /** |
||
147 | * @param string $dir |
||
148 | * @param int $mode |
||
149 | */ |
||
150 | private function makeDirectories(string $dir, int $mode = 0777) |
||
158 | |||
159 | /** |
||
160 | * register Aspect Module |
||
161 | */ |
||
162 | protected function registerAspectModule() |
||
170 | |||
171 | /** |
||
172 | * @return array |
||
173 | * @codeCoverageIgnore |
||
174 | */ |
||
175 | protected function aspectConfiguration(): array |
||
201 | } |
||
202 |