Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters
@param JsUtils $js
@param object $dispatcher the request dispatcher
@return \Ajax\bootstrap\html\HtmlBreadcrumbs
180042
public function fromDispatcher(JsUtils $js,$dispatcher,$startIndex=0){
		$this->startIndex=$startIndex;
		return $this->addElements($js->fromDispatcher($dispatcher));
	}
1291406
public function addEventSubscriber(EventSubscriberInterface $subscriber)
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new EventDispatcher();
        }

        $this->dispatcher->addSubscriber($subscriber);

        return $this;
    }
155752
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        return new AnnotationRouter(
            $serviceLocator->get('TjoAnnotationRouter\Options\Config'),
            $serviceLocator->get('TjoAnnotationRouter\Parser\ControllerParser'),
            new Merger(),
            $serviceLocator->get('ControllerLoader')
        );
    }
1315792
public function bind(EventDispatcherInterface $dispatcher, $eventName)
    {
        if (isset($this->events[$eventName])) {
            return;
        }

        $dispatcher->addListener($eventName, $this->getListener(), $this->priority);
        $this->events[$eventName] = true;
    }
74455
public function compile(JsUtils $js=NULL, &$view=NULL) {
		if (isset($js)) {
			$this->formElementsPrefix=$js->config()->getVar("formElementsPrefix");
			foreach ( $this->futureElements as $futureElement ) {
				$futureElementValue=$this->getPrefix($futureElement);
				$futureElementValues=explode("_", $futureElementValue);
				switch($futureElementValues [0]) {
					case "input":
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
					case "checkbox":
						$control=new HtmlInputCheckbox($futureElement);
						$control->setLabel($this->getPart($futureElement), false);
						break;
					case "radio":
						$name=$this->getPart($futureElement);
						$label=$this->getPart($futureElement, 2);
						$control=new HtmlInputRadio($futureElement);
						$control->setProperty("name", strtolower($name));
						$control->setLabel($label, false);
						break;
					case "select":
						$control=new HtmlSelect($futureElement,"");
						$control->setProperty("size", $futureElementValues [1]);
						$control->setClass("form-control");
						break;
					default:
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
				}
				$this->addElement($control);
			}
		}
		foreach ( $this->formGroups as $group ) {
			$this->addContent($group);
		}
		return parent::compile($js, $view);
	}
390315
private function camelize(Dispatcher $dispatcher, $actionName)
    {
        $dispatcher->setActionName(lcfirst(Text::camelize($actionName)));
        return $this;
    }
379022
public function subscribe(Dispatcher $events)
    {
        $events->listen('command.installing', __CLASS__.'@fireInstallingCommand', 5);
        $events->listen('command.updating', __CLASS__.'@fireUpdatingCommand', 5);
        $events->listen('command.resetting', __CLASS__.'@fireResettingCommand', 5);
        $events->listen('command.generatekey', __CLASS__.'@onGenerateKey');
        $events->listen('command.cacheconfig', __CLASS__.'@onCacheConfig');
        $events->listen('command.cacheroutes', __CLASS__.'@onCacheRoutes');
        $events->listen('command.publishvendors', __CLASS__.'@onPublishVendors');
        $events->listen('command.resetmigrations', __CLASS__.'@onResetMigrations');
        $events->listen('command.runmigrations', __CLASS__.'@onRunMigrations');
        $events->listen('command.runseeding', __CLASS__.'@onRunSeeding');
        $events->listen('command.linkstorage', __CLASS__.'@onLinkStorage');
        $events->listen('command.updatecache', __CLASS__.'@onUpdateCache');
    }
277245
public function addJs(string $js): PageHead
    {
        $js = str_ireplace(['<script>', '</script>'], '', $js);

        $this->js[++$this->js_sequence] = $js;

        return $this;
    }
776773
public function subscribe(Dispatcher $events)
    {
        if (!app()->make('antares.installed')) {
            return;
        }

        $events->listen(
                ComponentActivated::class, static::class . '@onActivated'
        );

        $events->listen(
                ComponentInstalled::class, static::class . '@onInstalled'
        );

        $events->listen(
                ComponentDeactivated::class, static::class . '@onDeactivated'
        );

        $events->listen(
                ComponentUninstalled::class, static::class . '@onUninstalled'
        );

        $events->listen(
            ComponentInstallationFailed::class, static::class . '@onFailed'
        );

        $events->listen(
                Failed::class, static::class . '@onComposerFailed'
        );
    }
1434
public function dispatch($dispatcher = null, $path = null, $method = null)
    {
        if (!$dispatcher) {
            $dispatcher = new Dispatcher;
        } elseif (\is_array($dispatcher)) {
            $dispatcher = new Dispatcher($dispatcher);
        }

        if (!$dispatcher instanceof DispatcherInterface) {
            throw new \InvalidArgumentException(
                'The first argument is must an array OR an object instanceof the DispatcherInterface'
            );
        }

        if (!$dispatcher->hasRouter()) {
            $dispatcher->setRouter($this);
        }

        return $dispatcher->dispatchUri($path, $method);
    }
598858
def add_breadcrumb(name, url = 'javascript:;', atts = {})
      hash = { name: name, url: url, atts: atts }
      @breadcrumbs << hash
    end
553634
public function run(JsUtils $js) {
		$this->_bsComponent=new Tabs($js);
		foreach ( $this->tabs as $tab ) {
			$this->_bsComponent->addTab($tab->run($js));
		}
		$this->addEventsOnRun($js);
		return $this->_bsComponent;
	}
675184
private function createBreadcrumbItems(StepController $step) {
        $viewModel = new ViewModel();
        $viewModel->setTemplate($this->breadcrumbTemplatePath);
        $viewModel->setVariable("breadcrumbTitle", $step->getBreadCrumbTitle());
        $viewModel->setVariable("stepNumber", $step->getBreadCrumbTitle());
        return $viewModel;

    }
218571
public function subscribe(Dispatcher $dispatcher)
    {
        $dispatcher->listen(Login::class, self::class.'@login');
        $dispatcher->listen(Lockout::class, self::class.'@lockout');
        $dispatcher->listen(Registered::class, self::class.'@registered');
    }
496840
public function addJavaScript($js, $docready = false)
    {

        if ($docready === true) {
            $this->JSrenderDocReady .= ( $js . "\n");
        } else {
            $this->JSrender .= ( $js . "\n");
        }
    }
644406
public function &add(JavascriptObject $js)
    {
        if ($this->router->isAjax()) {

            /* @var $ajax \Core\Ajax\Ajax */
            $ajax = $this->di->get('core.ajax');

            switch ($js->getType()) {
                case 'file':
                    $cmd = $ajax->createActCommand();
                    $cmd->getScript($js->getScript());
                    break;
            }

            $return = null;

            return $return;
        }

        $area = $js->getDefer() ? 'below' : 'top';

        if ($this->mode == 'core') {
            $this->core_js[$area][] = $js;
        }
        else {
            $this->app_js[$area][] = $js;
        }

        return $js;
    }
241578
public function compile(JsUtils $js = NULL, &$view = NULL) {
		if(isset($this->_maxVisible) && $this->_maxVisible<$this->count()){
			$this->addFollowPoints();
			if(isset($js)){
				$visibility=new Visibility($js);
				$visibility->attach("#".$this->identifier);
				$visibility->setOnTopVisible("$(this).children('.notVisible').hide();$(this).find('.points').show();");
				$visibility->compile($js,$view);
				$this->_visibility=$visibility;
			}
		}
		return parent::compile ($js,$view);
	}