Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
knuckleswtf
/
scribe
/
src
/
GroupedEndpoints
:
GroupedEndpointsFromCamelDir.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Knuckles\Scribe\GroupedEndpoints; use Knuckles\Camel\Camel; use Knuckles\Scribe\Tools\PathConfig; class GroupedEndpointsFromCamelDir implements GroupedEndpointsContract { public function __construct(protected PathConfig $paths) { } public function get(): array { if (!is_dir(Camel::camelDir($this->paths))) { throw new \InvalidArgumentException( "Can't use --no-extraction because there are no endpoints in the " . Camel::camelDir($this->paths) . " directory." ); } return Camel::loadEndpointsIntoGroups(Camel::camelDir($this->paths)); } public function hasEncounteredErrors(): bool { return false; } }