symfony API

sfSymfonyPluginManager Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

sfSymfonyPluginManager allows you to manage symfony plugins installation and uninstallation.

Inheritence

sfSymfonyPluginManager  <  sfPluginManager

Method Summary

Methods inherited from sfPluginManager

checkDependency , checkPluginDependencies , configure , doInstallPlugin , getEnvironment , getInstalledPlugins , getPluginLicense , getPluginVersion , initialize , installPlugin , isPluginCompatible , isPluginCompatibleWithDependency , uninstallPlugin , __construct

Method Details

  • configure () Browse code

    Configures this plugin manager.

  • disablePlugin ($plugin, $configDir) Browse code

    $plugin The name of the plugin
    $configDir The config directory

    Disables a plugin in the ProjectConfiguration class.


    This is a static method that does not rely on the PEAR environment
    as we don't want this method to have PEAR as a dependency.

  • enablePlugin ($plugin, $configDir) Browse code

    $plugin The name of the plugin
    $configDir The config directory

    Enables a plugin in the ProjectConfiguration class.


    This is a static method that does not rely on the PEAR environment
    as we don't want this method to have PEAR as a dependency.

  • initialize ($dispatcher, $environment) Browse code

    $dispatcher An event dispatcher instance
    $environment A sfPearEnvironment instance

    Initializes this sfPluginManager instance.


    Available options:

    * web_dir: The directory where to plugins assets (images, stylesheets, javascripts, ...)

    See sfPluginManager for other options.

  • installWebContent ($plugin) Browse code

    $plugin The plugin name

    Installs web content for a plugin.

  • (Boolean) isPluginCompatibleWithDependency ($dependency) Browse code

    $dependency A dependency array

    Returns true if the plugin is comptatible with the dependency.

    returns true if the plugin is compatible, false otherwise

  • listenToPluginPostInstall ($event) Browse code

    $event An sfEvent instance

    Listens to the plugin.post_install event.

  • listenToPluginPostUninstall ($event) Browse code

    $event An sfEvent instance

    Listens to the plugin.post_uninstall event.

  • registerSymfonyPackage () Browse code

    Registers the symfony package for the current version.

  • uninstallWebContent ($plugin) Browse code

    $plugin The plugin name

    Unnstalls web content for a plugin.