/** * 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()); }