Search

Does anybody know if there is a standard method in the Symphony core to check if a certain extension is installed? I like to check if JIT image manipulation is installed and enabled.

Use this code to see if JIT image manipulation is enabled (which means it is installed, or not?):

$extensionManager = new ExtensionManager($this->_Parent);

if($extensionManager->fetchStatus('jit_image_manipulation') == 'EXTENSION_ENABLED') {
    // Your code here
}

To grab a list of all installed extensions, use $extensionManager->listInstalledHandles();

Thanks carsten, this is very helpful!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details