Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 544 Bytes
<?php declare(strict_types = 1);
namespace Achse\PetrHejna;
use Nette\Utils\Finder;
use SplFileInfo;
final class NetteServicesNeonFinder
{
/**
* @return string[]
*/
public function find(string $path): array
{
$serviceConfigs = Finder::findFiles('services.neon')->from($path);
$neonFiles = [];
foreach ($serviceConfigs as $serviceConfig) {
/** @var SplFileInfo $serviceConfig */
$neonFiles[] = $serviceConfig->getRealPath();
}
return $neonFiles;
}
}
You can’t perform that action at this time.