/** * Scan the events for the application. * * @return void */ protected function scanEvents() { if (empty($this->scan)) { return; } $scanner = new Scanner($this->scan); file_put_contents($this->app->getScannedEventsPath(), '<?php ' . $scanner->getEventDefinitions()); }
/** * Get the route definitions for the annotations. * * @return string */ protected function getEventDefinitions() { $provider = 'Illuminate\\Foundation\\Support\\Providers\\EventServiceProvider'; return '<?php ' . PHP_EOL . PHP_EOL . Scanner::create($this->laravel->getProvider($provider)->scans())->getEventDefinitions() . PHP_EOL; }