Register svg directives.

To be used @eyewitness_svg('icon_name', 'class', 'width', 'height')

@return void
555691
public function registerSvgDirectives()
    {
        Blade::directive('eyewitness_svg', function($arguments) {
            $arguments = trim(trim($arguments, "("), ")");
            $arguments = explode(',', $arguments.',');

            $icon = trim($arguments[0], "' ");
            $class = trim(isset($arguments[1]) ? $arguments[1] : '', "' ");
            $width = trim(isset($arguments[2]) ? $arguments[2] : '', "' ");
            $height = trim(isset($arguments[3]) ? $arguments[3] : '', "' ");

            return $this->getIconString($icon, $class, $width, $height);
        });
    }
1065461
protected function registerBindings()
    {
        $this->app->singleton(PageHeaderDirective::class, PageHeaderDirective::class);
        $this->app->singleton(TooltipDirective::class, TooltipDirective::class);
        $this->app->singleton(SearchEngine::class, LocalSearch::class);
    }
261570
protected function register_packs() {
		if ( empty( $this->packs ) ) {
			return;
		}

		$icon_picker = Icon_Picker::instance();
		require_once "{$icon_picker->dir}/includes/types/fontello.php";

		foreach ( $this->packs as $pack_data ) {
			$icon_picker->registry->add( new Icon_Picker_Type_Fontello( $pack_data ) );
		}
	}
1350531
protected function registerNamespaces()
    {
        $this->mergeConfigFrom(__DIR__.'/src/config/config.php', 'menus');
        $this->loadViewsFrom(__DIR__.'/src/views', 'menus');

        $this->publishes([
            __DIR__.'/src/config/config.php' => config_path('menus.php'),
        ], 'config');

        $this->publishes([
            __DIR__.'/src/views' => base_path('resources/views/vendor/pingpong/menus'),
        ], 'views');
    }
448878
protected function registerBaseBindings()
    {
        static::setInstance($this);

        $this->instance('app', $this);
        $this->instance('Nano7\Application', $this);
        $this->instance('Illuminate\Contracts\Container\Container', $this);
    }
516848
protected function registerViews()
    {
        // register views within the application with the set namespace
        $this->loadViewsFrom($this->packagePath('resources/views'), 'votee');
        // allow views to be published to the storage directory
        $this->publishes([
            $this->packagePath('resources/views') => base_path('resources/views/vendor/votee'),
        ], 'views');
    }
48400
public function registerAssets()
    {
        $view = $this->getView();
        $asset = NotyAsset::register($view);
        $asset->animateCss = $this->registerAnimateCss;
        $asset->buttonsCss = $this->registerButtonsCss;
        $asset->fontAwesomeCss = $this->enableIcon && $this->registerFontAwesomeCss;
    }
100255
protected function registerJs()
	{
		//prepare values
		$values = Json::encode($this->values);

		//prepare config
		$config = [
			'type'=>$this->type,
			'height'=>$this->height,
		];
		if ($this->type !== self::SPARKLINE_BAR) {
			$config['width'] = $this->width;
		}
		$config = Json::encode(ArrayHelper::merge($this->sparklineConfig, $config));

		//create and register js
		$js = sprintf("$('#%s').sparkline(%s, %s);", $this->id, $values, $config);
		$this->view->registerJs($js);
	}
1153604
public function registerAssets()
    {
        $view = $this->getView();
        $bundle = NotyAsset::register($view);
        $bundle->animateCss = $this->registerAnimateCss;
        $bundle->buttonsCss = $this->registerButtonsCss;
    }
480741
function registerDirectives(Vue, directives) {
        for (var directive in directives) {
            registerDirective(Vue, directive, directives[directive]);
        }
    }
1188520
public function registerAssets()
    {
        if ($this->cssAssets)
        {
            foreach($this->cssAssets as $asset)
            {
                $this->assetLoader->registerCssAsset($asset);
            }
        }

        if ($this->jsAssets)
        {
            foreach($this->jsAssets as $asset)
            {
                $this->assetLoader->registerJsAsset($asset);
            }
        }
    }
976855
private function registerSidebarPackage()
    {
        $this->registerProvider(SidebarServiceProvider::class);

        $this->alias('Sidebar', \Arcanesoft\Sidebar\Facades\Sidebar::class);
    }
373566
function registerBoxViewPageEventHandlers() {
        // event names depend on whether we support svg or not
        if (scope.getUtility('support').svg) {
            realtime.on('pageavailable.svg', handlePageAvailableEvent);
            realtime.on('finished.svg', handleFinishedEvent);
            realtime.on('failed.svg', handleFailedEvent);
        } else {
            realtime.on('pageavailable.png', handlePageAvailableEvent);
            realtime.on('finished.png', handleFinishedEvent);
            realtime.on('failed.png', handleFailedEvent);
        }

        realtime.on('error', handleErrorEvent);
    }
17715
protected function setUp()
	{
		if (isset($this->configurator->tags[$this->tagName]))
		{
			return;
		}

		$tag = $this->configurator->tags->add($this->tagName);
		foreach (['seq', 'tseq'] as $attrName)
		{
			$tag->attributes->add($attrName)->filterChain->append(
				$this->configurator->attributeFilters['#identifier']
			);
		}
		$tag->template = '<img alt="{.}" class="emoji" draggable="false" src="https://twemoji.maxcdn.com/2/svg/{@tseq}.svg"/>';
	}
600391
public function registerAssets()
    {
        $data = $this->getData();

        // Read the assets manifest file if it exists
        $manifest = $this->loadManifest();

        if (isset($data['styles']))
        {
            foreach ($data['styles'] as $handle => $props)
            {
                $this->handleStyleAction('register', $handle, $props, $manifest);
            }
        }

        if (isset($data['scripts']))
        {
            foreach ($data['scripts'] as $handle => $props)
            {
                $this->handleScriptAction('register', $handle, $props, $manifest);
            }
        }
    }
1129662
protected function registerAlerts()
    {
        $this->app->singleton('alerts', function($app) {
            $config = $this->app['config']->get('cartalyst.alerts');

            $alerts = $this->app->make('Cartalyst\Alerts\Alerts');

            $viewNotifier  = new Notifier('view', $config['classes']);
            $flashNotifier = new FlashNotifier('flash', $config['classes'], $this->app['Cartalyst\Alerts\Storage\StorageInterface']);

            $alerts->addNotifier($viewNotifier);
            $alerts->addNotifier($flashNotifier);

            $alerts->setDefaultNotifier($config['default']);

            return $alerts;
        });
    }
929938
public function registerViewFinder()
    {
        // since view.find should be registered, lets get the paths and hints - in case they have changed
        $oldFinder = [];
        if ($this->app->resolved('view.finder')) {
            $oldFinder['paths'] = $this->app['view']->getFinder()->getPaths();
            $oldFinder['hints'] = $this->app['view']->getFinder()->getHints();
        }

        // recreate the view.finder
        $this->app->bind('view.finder', function ($app) use ($oldFinder) {

            $paths = (isset($oldFinder['paths']))?array_unique(array_merge($app['config']['view.paths'], $oldFinder['paths']), SORT_REGULAR):$app['config']['view.paths'];

            $viewFinder = new FileViewFinder($app['files'], $paths);

            if (!empty($oldFinder['hints'])) {
                array_walk($oldFinder['hints'], function($value, $key) use ($viewFinder) {
                    $viewFinder->addNamespace($key, $value);
                });
            }

            return $viewFinder;
        });
    }