Return the dispatcher in use by composer

@return	object	Composer\EventDispatcher\EventDispatcher in use
484911
private static function _getDispatcher()
	{
		self::_init();
		if (!self::$dispatcher)
		{
			self::$dispatcher = self::_getComposer()->getEventDispatcher();
		}
		return self::$dispatcher;
	}
690749
public function getEventManager() {
		if (empty($this->_eventManager)) {
			$this->_eventManager = new CommonEventManager();
			$this->_eventManager->loadListeners($this->_eventManager, 'Controller');
			$this->_eventManager->loadListeners($this->_eventManager, $this->name);
			$this->_eventManager->attach($this->Components);
			$this->_eventManager->attach($this);
		}
		return $this->_eventManager;
	}
811629
protected function getEventDispatcher(IContainer $container) : IEventDispatcher
    {
        $eventRegistry = new EventRegistry();

        foreach ($this->getEventListenerConfig() as $eventName => $listeners) {
            foreach ((array)$listeners as $listener) {
                $eventRegistry->registerListener($eventName, $this->getEventListenerCallback($listener, $container));
            }
        }

        return new SynchronousEventDispatcher($eventRegistry);
    }
324757
public function getAdapter()
    {
        if ($this->repositoryAdapter instanceof AdapterInterface) {
            return $this->repositoryAdapter;
        }

        foreach ($this->adapters as $adapterClass) {
            if (class_exists($adapterClass) === false || in_array('Accompli\Chrono\Adapter\AdapterInterface', class_implements($adapterClass)) === false) {
                continue;
            }

            $adapter = new $adapterClass($this->repositoryUrl, $this->repositoryDirectory, $this->processExecutor);
            if ($adapter->supportsRepository()) {
                return $adapter;
            }
        }
    }
497672
public function getEventManager()
    {
        if (!$this->eventManager instanceof EventManagerInterface) {
            $this->setEventManager(new EventManager(array(__CLASS__, get_called_class())));
        }
        return $this->eventManager;
    }
646263
public function purge()
    {
        if ($this->eventDispatcher) {
            $purgeEvent = new PurgeEvent($this->queue);

            $this->eventDispatcher->dispatch(PurgeEvent::NAME, $purgeEvent);
        }

        return $this->call($this->queue, 'purge');
    }
991134
function getEventManager()
    {
        if ($this->eventManager)
            return $this->eventManager;

        $eventManager = $this->getServiceManager()
            ->get('EventManager')
                ->setIdentifiers(array(
                    __CLASS__,
                    get_class($this),
                    // Default Identifier
                    'Zend\Mvc\Application',
                ));

        $this->eventManager = $eventManager;

        return $this->eventManager;
    }
855270
protected function getRenderer()
    {
        if (null === $this->renderer) {
            $this->setRenderer(new $this->rendererClass());
        }
        return $this->renderer;
    }
1009833
public function getBus(): ?Dispatcher
    {
        if (!$this->hasBus()) {
            $this->setBus($this->getDefaultBus());
        }
        return $this->bus;
    }
81173
public function getRenderer()
    {
        if ($this->renderer === null) {
            $this->renderer = Services::renderer();
        }
        return $this->renderer;
    }
755333
public function getESAdaptor()
    {
        if (empty($this->adaptor)) {

            $this->assertion->isInstanceOf(
                $this->decorator,
                '\Liip\Registry\Adaptor\Decorator\DecoratorInterface',
                'Mandatory decorator object is not defined.'
            );

            $this->adaptor = new ElasticaAdaptor($this->decorator);
        }

        return $this->adaptor;
    }
23343
public function registerDispatcher()
    {
        $this->app->singleton('ajax.dispatcher', function ($app) {
            return new Dispatcher(
                $app['ajaxes.collection'],
                $app['router'],
                $app
            );
        });

        $this->app->alias('ajax.dispatcher', Dispatcher::class);
    }
411762
protected function getPatcher()
    {
        if ($this->patcher === null) {
            $this->patcher = new Patcher($this->io, $this->composer->getInstallationManager(), $this->composer->getEventDispatcher(), new ProcessExecutor($this->io), $this->getVolatileDirectory());
        }

        return $this->patcher;
    }
751346
public function getCompiler()
    {
        if (null === $this->compiler) {
            $this->compiler = new Twig_Compiler($this);
        }

        return $this->compiler;
    }
1345770
public function getEventManager()
    {
        if (!$this->events) {
            $events = new EventManager();
            $this->setEventManager($events);
        }

        return $this->events;
    }
606999
protected function getRenderer()
    {
        if ($this->renderer === null) {
            $this->renderer = $this->getServiceManager()
                ->get('ViewRenderer');
        }

        return $this->renderer;
    }
421563
public function getLoader()
    {
        if (null === $this->loader) {
            $locator  = new FileLocator($this->paths);
            $resolver = new LoaderResolver(array(
                new YamlFileLoader($locator),
                new PhpFileLoader($locator),
                new IniFileLoader($locator),
                new ArrayLoader(),
            ));

            $this->loader = new DelegatingLoader($resolver);
        }

        return $this->loader;
    }