public static function registerPluggableApplication($plugin, $route = null, $config = array())
    {
        $plugin = ucfirst($plugin);
        self::fireEvent('Atomik::Registerpluggableapplication', array(&$plugin, &$route, &$config));
        if (empty($plugin)) {
            return;
        }
        $config['route'] = $route ?: (strtolower($plugin) . '*');
        self::$pluggableApplications[$plugin] = $config;
    }
public static function registerPluggableApplication($plugin, $route = null, $config = array())
    {
        $plugin = ucfirst($plugin);
        self::fireEvent('Atomik::Registerpluggableapplication', array(&$plugin, &$route, &$config));
        if (empty($plugin)) {
            return;
        }
        $config['route'] = $route ?: (strtolower($plugin) . '*');
        self::$pluggableApplications[$plugin] = $config;
    }
public static function registerPluggableApplication ( $ plugin , $ route = null , $ config = array ( ) ) { $ plugin = ucfirst ( $ plugin ) ; self :: fireEvent ( 'Atomik::Registerpluggableapplication' , array ( & $ plugin , & $ route , & $ config ) ) ; if ( empty ( $ plugin ) ) { return ; } $ config [ 'route' ] = $ route ? : ( strtolower ( $ plugin ) . '*' ) ; self :: $ pluggableApplications [ $ plugin ] = $ config ; }
Registers a pluggable application

Possible configuration keys are:
- rootDir:             directory inside the plugin directory where the application is stored (default empty string)
- pluginDir:           the plugin's directory (default to null, will find the directory automatically)
- resetConfig:			whether to reset the config before dispatching
- overwriteDirs:       whether to keep access to the user actions, views, layouts and helpers folders
- overwriteFiles:		whether to keep access to the pre_dispatch and post_dispatch files
- checkPluginIsLoaded: whether to check if the plugin is loaded
- bootstrapFile:		the name of the bootstrap file (eg: Application.php)

@param string $plugin Plugin's name
@param string $route The route that will trigger the application (default is the plugin name)
@param array $config Configuration
Registers a pluggable application