kahlan\cli\Kahlan::composerPostUpdate PHP Method

composerPostUpdate() public static method

It will have no effect if the cache location is changed the default config file (i.e. 'kahlan-config.php').
public static composerPostUpdate ( Composer\Script\Event $event )
$event Composer\Script\Event
    public static function composerPostUpdate(Event $event)
    {
        if (!defined('DS')) {
            define('DS', DIRECTORY_SEPARATOR);
        }
        $kahlan = new static(['autoloader' => $event->getComposer()]);
        $kahlan->loadConfig();
        $kahlan->_interceptor();
        if ($interceptor = Interceptor::instance()) {
            $interceptor->clearCache();
        }
    }