/** * Get the route definitions for the annotations. * * @return string */ protected function getEventDefinitions() { $scanner = $this->laravel->make('annotations.event.scanner'); $scanner->setClassesToScan($this->provider->eventScans()); return '<?php ' . PHP_EOL . PHP_EOL . $scanner->getEventDefinitions() . PHP_EOL; }
/** * Get the route definitions for the annotations. * * @return string */ protected function getRouteDefinitions() { $scanner = $this->laravel->make('annotations.model.scanner'); $scanner->setClassesToScan($this->provider->modelScans()); return '<?php ' . PHP_EOL . PHP_EOL . $scanner->getModelDefinitions() . PHP_EOL; }