src/Zicht/Bundle/FrameworkExtraBundle/Command/AbstractCronCommand.php
protected function getMutexFile()
    {
        $file = false;

        if (true === $this->mutex) {
            $file = $this->getContainer()->getParameter('kernel.cache_dir')
                . '/'
                . Str::dash(lcfirst(Str::classname(get_class($this))))
                . '.lock';
        } elseif ($this->mutex) {
            $file = $this->mutex;
        }
        return $file;
    }
protected function getMutexFile()
    {
        $file = false;

        if (true === $this->mutex) {
            $file = $this->getContainer()->getParameter('kernel.cache_dir')
                . '/'
                . Str::dash(lcfirst(Str::classname(get_class($this))))
                . '.lock';
        } elseif ($this->mutex) {
            $file = $this->mutex;
        }
        return $file;
    }
protected function getMutexFile ( ) { $ file = false ; if ( true === $ this -> mutex ) { $ file = $ this -> getContainer ( ) -> getParameter ( 'kernel.cache_dir' ) . '/' . Str :: dash ( lcfirst ( Str :: classname ( get_class ( $ this ) ) ) ) . '.lock' ; } elseif ( $ this -> mutex ) { $ file = $ this -> mutex ; } return $ file ; }
Returns a path to the file which can be used as a mutex.

@return bool|string
Returns a path to the file which can be used as a mutex .