WPLessPlugin::dispatch PHP Method

dispatch() public method

Dispatches all events of the plugin
Since: 1.3
Author: oncletom
public dispatch ( )
    public function dispatch()
    {
        if ($this->is_hooks_registered) {
            return false;
        }
        /*
         * Garbage Collection Registration
         */
        $gc = new WPLessGarbagecollector($this->configuration);
        add_action('wp-less-garbage-collection', array($gc, 'clean'));
        /*
         * Last Hooks
         */
        $this->registerHooks();
    }