DiscoverEvents
class DiscoverEvents (View source)
Методы
| static array | within(string $listenerPath, string $basePath) Получить все события и слушатели, выполнив поиск в заданном каталоге слушателей. | |
| static array | getListenerEvents(iterable $listeners, string $basePath) Получить всех слушателей и соответствующие им события. | |
| static string | classFromFile(SplFileInfo $file, string $basePath) Извлечь имя класса из заданного пути к файлу. |
Подробное описание
static array
within(string $listenerPath, string $basePath)
Получить все события и слушатели, выполнив поиск в заданном каталоге слушателей.
static protected array
getListenerEvents(iterable $listeners, string $basePath)
Получить всех слушателей и соответствующие им события.
static protected string
classFromFile(SplFileInfo $file, string $basePath)
Извлечь имя класса из заданного пути к файлу.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Foundation/Events/DiscoverEvents.html