slimphp-api/slim-phinx

View on GitHub
src/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace SlimApi\Phinx;

class Module
{
    /**
     * load the dependencies for the module.
     */
    public function loadDependencies()
    {
        $config = [];
        $files  = glob(dirname(__DIR__).'/config/*.config.php', GLOB_BRACE);
        foreach ($files as $file) {
            $config = array_merge($config, (require $file));
        }
        return $config;
    }
}