mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
mvc, oops, object of type Phalcon\Config can't be converted to string... so we'll have to check if the routing is an object or array to support both configurations
This commit is contained in:
parent
582b201100
commit
9cbb08d765
@ -101,7 +101,7 @@ class Routing
|
||||
// we should consider some kind of caching here
|
||||
//
|
||||
$registered_modules = array();
|
||||
$rootDirs = is_string($this->rootDir) ? array($this->rootDir) : $this->rootDir ;
|
||||
$rootDirs = is_object($this->rootDir) || is_array($this->rootDir) ? $this->rootDir : array($this->rootDir);
|
||||
foreach ($rootDirs as $rootDir) {
|
||||
foreach (glob($rootDir."*", GLOB_ONLYDIR) as $namespace_base) {
|
||||
foreach (glob($namespace_base."/*", GLOB_ONLYDIR) as $module_base) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user