src/JaztecAdmin/Direct/Framework.php
public function getControllers(array $values)
    {
        $config     = $this->getServiceLocator()->get('Config');

        /* $config array */
        if (!isset($config['jaztec_admin']['modules']['controllers']['paths'])) {
            return array();
        }
        $values['paths']      = $config['jaztec_admin']['modules']['controllers']['paths'];

        return $this->getFiles($values['paths'], 'controller');
    }
public function getControllers(array $values)
    {
        $config     = $this->getServiceLocator()->get('Config');

        /* $config array */
        if (!isset($config['jaztec_admin']['modules']['controllers']['paths'])) {
            return array();
        }
        $values['paths']      = $config['jaztec_admin']['modules']['controllers']['paths'];

        return $this->getFiles($values['paths'], 'controller');
    }
public function getControllers ( array $ values ) { $ config = $ this -> getServiceLocator ( ) -> get ( 'Config' ) ; /* $config array */ if ( ! isset ( $ config [ 'jaztec_admin' ] [ 'modules' ] [ 'controllers' ] [ 'paths' ] ) ) { return array ( ) ; } $ values [ 'paths' ] = $ config [ 'jaztec_admin' ] [ 'modules' ] [ 'controllers' ] [ 'paths' ] ; return $ this -> getFiles ( $ values [ 'paths' ] , 'controller' ) ; }
Scans the paths set in the KJSencha path loader to collect the controllers
and scans them against the ACL returning only the controllers the user is
allowed to use.

The reader will scan for Ext.define statements with a .controller. name.

@param  array $values Client side params
@return array An array of the allowed controllers to be active.
Scans the paths set in the KJSencha path loader to collect the controllers and scans them against the ACL returning only the controllers the user is allowed to use .