Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 161 Rev 164
Línea 41... Línea 41...
41
     *
41
     *
42
     * @param AdapterInterface $adapter
42
     * @param AdapterInterface $adapter
43
     */
43
     */
44
    public function __construct($adapter) 
44
    public function __construct($adapter) 
45
    {
45
    {
-
 
46
    
-
 
47
 
-
 
48
        
-
 
49
        
-
 
50
        
Línea 46... Línea 51...
46
 
51
 
Línea -... Línea 52...
-
 
52
        $this->hasNetwork = false;
47
        $this->hasNetwork = false;
53
        
Línea 48... Línea 54...
48
        
54
        
Línea 49... Línea 55...
49
        
55
        
Línea 59... Línea 65...
59
            }
65
            }
60
        }
66
        }
Línea 61... Línea 67...
61
        
67
        
Línea 62... Línea -...
62
        $hostname = trim(str_replace(['https://', 'http://'], '', $hostname));
-
 
Línea 63... Línea -...
63
        
-
 
64
       
68
        $hostname = trim(str_replace(['https://', 'http://'], '', $hostname));
65
 
69
        
66
        
-
 
67
        $parts = explode('/', $hostname);
-
 
68
        $hostname = $parts > 1 ? $parts[0] : $hostname;
-
 
69
        
-
 
70
       // $hostname = 'dev-spa.leaderslinked.com';
-
 
71
        
-
 
72
        //$hostname = 'dev.leaderslinked.com';
-
 
73
        //$hostname = 'leaderslinked.example.com';
-
 
74
        
-
 
75
       // error_log('hostname :  '  . $hostname .  ' session ID : ' . session_id() . ' request URI : ' . $_SERVER['REQUEST_URI']);
-
 
76
        
-
 
Línea 77... Línea 70...
77
        
70
 
78
        
71
        $parts = explode('/', $hostname);
Línea 79... Línea -...
79
        
-
 
Línea 80... Línea 72...
80
        
72
        $hostname = $parts > 1 ? $parts[0] : $hostname;        
Línea 81... Línea 73...
81
        $networkMapper = NetworkMapper::getInstance($adapter);
73
        
82
        $this->network = $networkMapper->fetchOneByHostnameForFrontend($hostname);
74
        $networkMapper = NetworkMapper::getInstance($adapter);