Skip to content

Commit

Permalink
remove compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Aug 25, 2015
1 parent 2158803 commit e1bdb5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 65 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ $ php artisan vendor:publish --tag=aspect
$ php artisan vendor:publish --provider="Ytake\LaravelAspect\AspectServiceProvider"
```

### for optimize(production)
required config/compile.php

```php
'providers' => [
\Ytake\LaravelAspect\CompileServiceProvider::class,
],
```

## Cache Clear Command

```bash
Expand Down
53 changes: 0 additions & 53 deletions src/CompileServiceProvider.php

This file was deleted.

9 changes: 6 additions & 3 deletions src/GoAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ public function __construct(LaravelApplication $laravel, array $configure)
*/
public function register()
{
$kernel = AspectKernel::getInstance();
$kernel->setLaravel($this->laravel);
$kernel->init($this->configure);
if (!defined('AOP_CACHE_DIR')) {
$kernel = AspectKernel::getInstance();
$kernel->setLaravel($this->laravel);
$kernel->init($this->configure);
}
}

}

0 comments on commit e1bdb5b

Please sign in to comment.