Jarves\Configuration\Configs::getConfigFiles PHP Method

getConfigFiles() public method

public getConfigFiles ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : string[]
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
return string[]
    public function getConfigFiles(BundleInterface $bundle)
    {
        $configDir = $bundle->getPath() . '/Resources/config/';
        $baseFile = $configDir . 'jarves.xml';
        $files = [];
        if (file_exists($baseFile)) {
            $files = [$configDir . 'jarves.xml'];
        }
        if (file_exists($configDir)) {
            $files = array_merge($files, glob($configDir . 'jarves.*.xml'));
        }
        return $files;
    }