private function initSession()
    {
        $transport = $this->transportRegistry->getTransport($this->profile->get('transport', 'name'));
        $repository = $transport->getRepository($this->profile->get('transport'));

        $credentials = new SimpleCredentials(
            $this->profile->get('phpcr', 'username'),
            $this->profile->get('phpcr', 'password')
        );

        $session = $repository->login($credentials, $this->profile->get('phpcr', 'workspace'));

        // if you are wondering wtf here -- we wrap the PhpcrSession
        if (!$this->session) {
            $this->session = new PhpcrSession($session);
        } else {
            $this->session->setPhpcrSession($session);
        }
    }
private function initSession()
    {
        $transport = $this->transportRegistry->getTransport($this->profile->get('transport', 'name'));
        $repository = $transport->getRepository($this->profile->get('transport'));

        $credentials = new SimpleCredentials(
            $this->profile->get('phpcr', 'username'),
            $this->profile->get('phpcr', 'password')
        );

        $session = $repository->login($credentials, $this->profile->get('phpcr', 'workspace'));

        // if you are wondering wtf here -- we wrap the PhpcrSession
        if (!$this->session) {
            $this->session = new PhpcrSession($session);
        } else {
            $this->session->setPhpcrSession($session);
        }
    }
private function initSession ( ) { $ transport = $ this -> transportRegistry -> getTransport ( $ this -> profile -> get ( 'transport' , 'name' ) ) ; $ repository = $ transport -> getRepository ( $ this -> profile -> get ( 'transport' ) ) ; $ credentials = new SimpleCredentials ( $ this -> profile -> get ( 'phpcr' , 'username' ) , $ this -> profile -> get ( 'phpcr' , 'password' ) ) ; $ session = $ repository -> login ( $ credentials , $ this -> profile -> get ( 'phpcr' , 'workspace' ) ) ; // if you are wondering wtf here -- we wrap the PhpcrSession if ( ! $ this -> session ) { $ this -> session = new PhpcrSession ( $ session ) ; } else { $ this -> session -> setPhpcrSession ( $ session ) ; } }
Initialize the PHPCR session.
Initialize the PHPCR session .