Skip to content

Commit e1bdb5b

Browse files
committed
remove compiler
1 parent 2158803 commit e1bdb5b

3 files changed

Lines changed: 6 additions & 65 deletions

File tree

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@ $ php artisan vendor:publish --tag=aspect
6161
$ php artisan vendor:publish --provider="Ytake\LaravelAspect\AspectServiceProvider"
6262
```
6363

64-
### for optimize(production)
65-
required config/compile.php
66-
67-
```php
68-
'providers' => [
69-
\Ytake\LaravelAspect\CompileServiceProvider::class,
70-
],
71-
```
72-
7364
## Cache Clear Command
7465

7566
```bash

src/CompileServiceProvider.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/GoAspect.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ public function __construct(LaravelApplication $laravel, array $configure)
4646
*/
4747
public function register()
4848
{
49-
$kernel = AspectKernel::getInstance();
50-
$kernel->setLaravel($this->laravel);
51-
$kernel->init($this->configure);
49+
if (!defined('AOP_CACHE_DIR')) {
50+
$kernel = AspectKernel::getInstance();
51+
$kernel->setLaravel($this->laravel);
52+
$kernel->init($this->configure);
53+
}
5254
}
55+
5356
}

0 commit comments

Comments
 (0)