| @@ 52-60 (lines=9) @@ | ||
| 49 | $this->mergeConfigFrom($configPath, 'ytake-laravel-aop'); |
|
| 50 | $this->publishes([$configPath => config_path('ytake-laravel-aop.php')], 'aspect'); |
|
| 51 | ||
| 52 | $this->app->singleton('aspect.manager', function ($app) { |
|
| 53 | $annotationConfiguration = new AnnotationConfiguration( |
|
| 54 | $app['config']->get('ytake-laravel-aop.annotation') |
|
| 55 | ); |
|
| 56 | $annotationConfiguration->ignoredAnnotations(); |
|
| 57 | ||
| 58 | // register annotation |
|
| 59 | return new AspectManager($app); |
|
| 60 | }); |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | public function register(): void |
|
| 35 | { |
|
| 36 | $this->app->configure('ytake-laravel-aop'); |
|
| 37 | $this->app->singleton('aspect.manager', function ($app) { |
|
| 38 | $annotationConfiguration = new AnnotationConfiguration( |
|
| 39 | $app['config']->get('ytake-laravel-aop.annotation') |
|
| 40 | ); |
|
| 41 | $annotationConfiguration->ignoredAnnotations(); |
|
| 42 | return new AspectManager($app); |
|
| 43 | }); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||