Command/OutputCommand.php
private function getFilePath()
    {

        $tmpDir = realpath($this->getContainer()->get('kernel')->getRootDir() . '/../var/tmp/');
        $fileName = '/' . str_replace(':', '--', $this->getName()) . '.sock';

        if (!file_exists($tmpDir)) {
            mkdir($tmpDir);
        }

        return $tmpDir . $fileName;
    }
private function getFilePath()
    {

        $tmpDir = realpath($this->getContainer()->get('kernel')->getRootDir() . '/../var/tmp/');
        $fileName = '/' . str_replace(':', '--', $this->getName()) . '.sock';

        if (!file_exists($tmpDir)) {
            mkdir($tmpDir);
        }

        return $tmpDir . $fileName;
    }
private function getFilePath ( ) { $ tmpDir = realpath ( $ this -> getContainer ( ) -> get ( 'kernel' ) -> getRootDir ( ) . '/../var/tmp/' ) ; $ fileName = '/' . str_replace ( ':' , '--' , $ this -> getName ( ) ) . '.sock' ; if ( ! file_exists ( $ tmpDir ) ) { mkdir ( $ tmpDir ) ; } return $ tmpDir . $ fileName ; }
Gets the file path holding the port number

@return string
Gets the file path holding the port number