Collective\Annotations\AnnotationsServiceProvider::eventScans PHP Method

eventScans() public method

Get the classes to be scanned by the provider.
public eventScans ( ) : array
return array
    public function eventScans()
    {
        if ($this->scanEverything) {
            return $this->getAllClasses();
        }
        return $this->scanEvents;
    }

Usage Example

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