src/Kunstmaan/MediaBundle/Command/CreatePdfPreviewCommand.php
public function isEnabled()
    {
        if (null === $this->enablePdfPreview) {
            $this->enablePdfPreview = $this->getContainer()->getParameter('kunstmaan_media.enable_pdf_preview');
        }

        return $this->enablePdfPreview;
    }
public function isEnabled()
    {
        if (null === $this->enablePdfPreview) {
            $this->enablePdfPreview = $this->getContainer()->getParameter('kunstmaan_media.enable_pdf_preview');
        }

        return $this->enablePdfPreview;
    }
public function isEnabled ( ) { if ( null === $ this -> enablePdfPreview ) { $ this -> enablePdfPreview = $ this -> getContainer ( ) -> getParameter ( 'kunstmaan_media.enable_pdf_preview' ) ; } return $ this -> enablePdfPreview ; }
Checks whether the command is enabled or not in the current environment.

Override this to check for x or y and return false if the command can not
run properly under the current conditions.

@return bool
Checks whether the command is enabled or not in the current environment .