protected function getConfigInject($type) {
        switch (strtolower($type)) {
            case 'all':
            case 'a':
                return engineGet('inject', 'all');
            case 'controllers':
            case 'controller':
            case 'c':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'controllers'));
            case 'services':
            case 'service':
            case 's':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'services'));
            case 'views':
            case 'view':
            case 'v':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'views'));
        }
    }
protected function getConfigInject($type) {
        switch (strtolower($type)) {
            case 'all':
            case 'a':
                return engineGet('inject', 'all');
            case 'controllers':
            case 'controller':
            case 'c':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'controllers'));
            case 'services':
            case 'service':
            case 's':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'services'));
            case 'views':
            case 'view':
            case 'v':
                return array_merge(engineGet('inject', 'all'), engineGet('inject', 'views'));
        }
    }
protected function getConfigInject ( $ type ) { switch ( strtolower ( $ type ) ) { case 'all' : case 'a' : return engineGet ( 'inject' , 'all' ) ; case 'controllers' : case 'controller' : case 'c' : return array_merge ( engineGet ( 'inject' , 'all' ) , engineGet ( 'inject' , 'controllers' ) ) ; case 'services' : case 'service' : case 's' : return array_merge ( engineGet ( 'inject' , 'all' ) , engineGet ( 'inject' , 'services' ) ) ; case 'views' : case 'view' : case 'v' : return array_merge ( engineGet ( 'inject' , 'all' ) , engineGet ( 'inject' , 'views' ) ) ; } }
Fetches classes to inject from the config file. If given type is not "all",
the required is merged with the "all"
@param string $type all, controllers|controller|c,services|service|s, views|view|v
@return array
Fetches classes to inject from the config file . If given type is not all the required is merged with the all