Proyectos de Subversion LeadersLinked - Services

Rev

Rev 192 | Rev 231 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 192 Rev 195
Línea 106... Línea 106...
106
    
106
    
107
    
107
    
-
 
108
    
-
 
109
    public function init(ModuleManager $moduleManager)
108
    
110
    {
109
    public function init(ModuleManager $moduleManager)
111
 
110
    {
112
        
Línea 111... Línea 113...
111
        $events = $moduleManager->getEventManager();
113
        $events = $moduleManager->getEventManager();
Línea 137... Línea 139...
137
        return include __DIR__ . '/../config/module.config.php';
139
        return include __DIR__ . '/../config/module.config.php';
138
    }
140
    }
Línea 139... Línea 141...
139
 
141
 
140
    public function onBootstrap(MvcEvent $event)
142
    public function onBootstrap(MvcEvent $event)
-
 
143
    {
-
 
144
        
-
 
145
 
141
    {
146
        
142
        header('Access-Control-Allow-Origin: *');
147
        header('Access-Control-Allow-Origin: *');
143
        header('Access-Control-Allow-Headers: *');
148
        header('Access-Control-Allow-Headers: *');
144
        header('Access-Control-Allow-Method: POST, GET, HEAD, OPTIONS');
149
        header('Access-Control-Allow-Method: POST, GET, HEAD, OPTIONS');
Línea 173... Línea 178...
173
            'phpArray',
178
            'phpArray',
174
            __DIR__ . '/i18n/spanish.php',
179
            __DIR__ . '/i18n/spanish.php',
175
            'default'
180
            'default'
176
            );
181
            );
Línea 177... Línea -...
177
        
-
 
Línea 178... Línea 182...
178
        
182
        
Línea 355... Línea 359...
355
        }
359
        }
Línea 356... Línea 360...
356
        
360
        
357
        $this->currentUserPlugin = new CurrentUserPlugin($adapter);
361
        $this->currentUserPlugin = new CurrentUserPlugin($adapter);
Línea -... Línea 362...
-
 
362
        if($this->currentUserPlugin->hasIdentity()) {
-
 
363
            
358
        if($this->currentUserPlugin->hasIdentity()) {
364
  
Línea 359... Línea 365...
359
            
365
            
360
            if(User::STATUS_BANNED == $this->currentUserPlugin->getUser()->status) {
366
            if(User::STATUS_BANNED == $this->currentUserPlugin->getUser()->status) {
361
                
367
                
Línea 705... Línea 711...
705
            return;
711
            return;
706
        }
712
        }
Línea 707... Línea 713...
707
            
713
            
708
        $response = $event->getResponse();
714
        $response = $event->getResponse();
-
 
715
        if('error-exception' == $error) {
-
 
716
            
709
        if('error-exception' == $error) {
717
     
710
            $exception = $event->getParam('exception');
718
            $exception = $event->getParam('exception');
711
            error_log($exception->getCode() . ' ' . $exception->getMessage());
719
            error_log($exception->getCode() . ' ' . $exception->getMessage());
Línea 712... Línea 720...
712
            error_log($exception->getTraceAsString());
720
            error_log($exception->getTraceAsString());
Línea 748... Línea 756...
748
 
756
 
749
    
757
    
Línea 750... Línea 758...
750
    public function authPreDispatch(MvcEvent $event)
758
    public function authPreDispatch(MvcEvent $event)
Línea 751... Línea 759...
751
    {
759
    {
752
 
760