當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Factory::composer方法代碼示例

本文整理匯總了PHP中Illuminate\Contracts\View\Factory::composer方法的典型用法代碼示例。如果您正苦於以下問題:PHP Factory::composer方法的具體用法?PHP Factory::composer怎麽用?PHP Factory::composer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Contracts\View\Factory的用法示例。


在下文中一共展示了Factory::composer方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: boot

 /**
  * Register bindings in the container.
  *
  * @return void
  */
 public function boot(ViewFactory $view)
 {
     $view->composer('*', 'App\\Http\\ViewComposers\\GlobalComposer');
     $view->composer(['report.create', 'report.view', 'report.IncompleteApproval', 'report.incomplete', 'report.QaVerification'], 'App\\Http\\ViewComposers\\FormOptionComposer');
     $view->composer(['report.view', 'pdf.print', 'report.IncompleteApproval', 'report.incomplete', 'report.QaVerification'], 'App\\Http\\ViewComposers\\RecordUpdateComposer');
     $view->composer(['home', 'admin.pages.index'], 'App\\Http\\ViewComposers\\HomeComposer');
     $view->composer(['home.pareto', 'admin.pages.index'], 'App\\Http\\ViewComposers\\HomeComposer');
 }
開發者ID:rob1121,項目名稱:qdn,代碼行數:13,代碼來源:ComposerServiceProvider.php

示例2: boot

 /**
  * Bootstrap the application services.
  *
  * @param  \Illuminate\Contracts\View\Factory $factory
  * @return void
  */
 public function boot(Factory $factory)
 {
     $factory->composer(['_partials.nav', 'dialogs.command', 'user.profile'], ActiveUserComposer::class);
     $factory->composer('_partials.nav', HeaderComposer::class);
     $factory->composer('_partials.sidebar', NavigationComposer::class);
     $factory->composer(['layout', 'user.profile'], ThemeComposer::class);
     $factory->composer('_partials.update', VersionComposer::class);
 }
開發者ID:devLopez,項目名稱:deployer-1,代碼行數:14,代碼來源:ViewServiceProvider.php

示例3: boot

 public function boot(Factory $view)
 {
     $this->loadViewsFrom(__DIR__ . '/Views', 'toolbox');
     $this->publishes([__DIR__ . '/Views' => base_path('resources/views/vendor/toolbox')]);
     // We need to register our view composer for errorPartial to properly set all variables
     $view->composer('vendor.toolbox.errors.errorPartial', ErrorPartialComposer::class);
 }
開發者ID:msivia,項目名稱:Toolbox,代碼行數:7,代碼來源:ErrorPartialServiceProvider.php

示例4: boot

 public function boot(ViewFactory $view)
 {
     /*view()->composer('partials._navbar', function($view){
     			$name = (\Auth::user())? \Auth::user()->name : '';
     			$view->with('name',  $name);
     		});*/
     //USED TO SEND THE "NAME" OF THE LOGGED IN USER TO THE "_navbar" VIEW
     $view->composer(['partials._navbar', 'tickets.viewAll'], 'App\\Http\\ViewComposers\\NavigationComposer');
     //USED TO CREATE THE "BUSINESS UNIT" SELECT LIST
     $view->composer(['partials._registrationFormFields', 'partials._homepg_applicationForm'], 'App\\Http\\ViewComposers\\BusinessUnitComposer');
     //USED TO CREATE THE "APPLICATION" SELECT LIST
     $view->composer('tickets.create', 'App\\Http\\ViewComposers\\ApplicationComposer');
     //USED TO SEND FILTERED TICKETS TO THE "viewAll" VIEW -- NOT WORKING
     /*$view->composer(
     			'tickets.viewAll', 'App\Http\ViewComposers\ViewTicketsComposer'
     		);*/
 }
開發者ID:halayuba,項目名稱:laravel5-tickets,代碼行數:17,代碼來源:AppServiceProvider.php

示例5: boot

 public function boot(Routing $routing, Dispatcher $events, Factory $view)
 {
     $this->loadViews();
     $this->publishMigrations();
     $routing->addRoutes();
     $events->listen(BuildingMenu::class, function (BuildingMenu $event) {
         $event->menu->add(['text' => 'Nieuws', 'url' => 'admin/news']);
     });
     $view->composer('news::partials.preview_latest', Latest::class);
     $this->provideMenuPage();
 }
開發者ID:jeroennoten,項目名稱:laravel-news,代碼行數:11,代碼來源:ServiceProvider.php

示例6: boot

 /**
  * {@inheritDoc}
  */
 public function boot(ViewFactory $viewFactory, CacheRepository $cache)
 {
     // Define views path
     $this->loadViewsFrom(__DIR__ . '/../resources/views', 'queue-monitor');
     // Composer for the status views
     $composer = function ($view) use($cache) {
         $queues = [];
         foreach ($cache->get(QueueMonitor::QUEUES_CACHE_KEY, []) as $queueName) {
             $status = QueueStatus::get($queueName);
             if (!$status) {
                 $status = new QueueStatus($queueName, QueueStatus::ERROR, false);
                 $status->setMessage("Status not found in cache; is a cron job set up and running?");
             }
             $queues[$queueName] = $status;
         }
         $view->withQueues($queues);
     };
     $viewFactory->composer('queue-monitor::status', $composer);
     $viewFactory->composer('queue-monitor::status-json', $composer);
 }
開發者ID:mramsden,項目名稱:laravel-queue-monitor,代碼行數:23,代碼來源:ServiceProvider.php

示例7: boot

 /**
  * Boot the service provider.
  *
  * @param \Illuminate\Contracts\View\Factory $factory
  */
 public function boot(Factory $factory)
 {
     $factory->composer('*', AppComposer::class);
     $factory->composer('*', CurrentUserComposer::class);
     $factory->composer(['index', 'issue', 'subscribe', 'signup'], ExploreComposer::class);
     $factory->composer(['index', 'issue', 'subscribe', 'signup', 'admin.settings.theme'], ThemeComposer::class);
     $factory->composer('dashboard.*', DashboardComposer::class);
     $factory->composer('admin.*', AdminComposer::class);
     $factory->composer(['install', 'admin.settings.localization', 'admin.settings.timezone'], TimezoneLocaleComposer::class);
 }
開發者ID:xiaobailc,項目名稱:Gitamin,代碼行數:15,代碼來源:ComposerServiceProvider.php

示例8: boot

 /**
  * Boot the service provider.
  *
  * @param \Illuminate\Contracts\View\Factory $factory
  */
 public function boot(Factory $factory)
 {
     $factory->composer('*', AppComposer::class);
     $factory->composer('*', CurrentUserComposer::class);
     $factory->composer(['index'], MetricsComposer::class);
     $factory->composer(['index', 'incident', 'subscribe'], StatusPageComposer::class);
     $factory->composer(['index', 'incident', 'subscribe', 'dashboard.settings.theme'], ThemeComposer::class);
     $factory->composer('dashboard.*', DashboardComposer::class);
     $factory->composer(['setup', 'dashboard.settings.localization'], TimezoneLocaleComposer::class);
 }
開發者ID:ramirors,項目名稱:Cachet,代碼行數:15,代碼來源:ComposerServiceProvider.php

示例9: boot

 /**
  * Boot the service provider.
  *
  * @param \Illuminate\Contracts\View\Factory $factory
  */
 public function boot(Factory $factory)
 {
     $factory->composer('*', AppComposer::class);
     $factory->composer('*', LoggedUserComposer::class);
     $factory->composer(['index', 'subscribe'], IndexComposer::class);
     $factory->composer(['index', 'subscribe'], ThemeComposer::class);
     $factory->composer('dashboard.*', DashboardComposer::class);
     $factory->composer(['setup', 'dashboard.settings.app-setup'], TimezoneLocaleComposer::class);
 }
開發者ID:hd-deman,項目名稱:Cachet,代碼行數:14,代碼來源:ComposerServiceProvider.php

示例10: boot

 /**
  * Register bindings in the container.
  *
  * @param ViewFactory $view
  */
 public function boot(ViewFactory $view)
 {
     $view->composer('*', 'vAMSYS\\Http\\ViewComposers\\GlobalComposer');
     $view->composer('flights.home', 'vAMSYS\\Http\\ViewComposers\\FlightsComposer');
     $view->composer('flights.book', 'vAMSYS\\Http\\ViewComposers\\FlightsBookComposer');
     $view->composer('flights.jumpseat', 'vAMSYS\\Http\\ViewComposers\\FlightsBookComposer');
     $view->composer('staff.*', 'vAMSYS\\Http\\ViewComposers\\StaffComposer');
     $view->composer('profile.*', 'vAMSYS\\Http\\ViewComposers\\ProfileComposer');
 }
開發者ID:aorly,項目名稱:vAMSYS,代碼行數:14,代碼來源:ComposerServiceProvider.php

示例11: boot

 public function boot(Factory $view)
 {
     $view->composer(['api-tester::api-tester'], ApiTesterComposer::class);
 }
開發者ID:asvae,項目名稱:laravel-api-tester,代碼行數:4,代碼來源:ViewServiceProvider.php

示例12: boot

 /**
  * Register bindings in the container.
  *
  * @return void
  */
 public function boot(ViewFactory $view)
 {
     $view->composer('profile::update', 'App\\View\\Composers\\SelectComposer');
     $view->composer('ads.create', 'App\\View\\Composers\\SelectComposer');
     $view->composer('admin.advertisement._form', 'App\\View\\Composers\\SelectComposer');
 }
開發者ID:lyovkin,項目名稱:v2board,代碼行數:11,代碼來源:SelectServiceProdiver.php

示例13: boot

 /**
  * Register bindings in the container.
  *
  * @return void
  */
 public function boot(ViewFactory $view)
 {
     $view->composer('*', 'App\\Http\\ViewComposers\\LayoutComposer');
 }
開發者ID:wellbornman,項目名稱:laravel-dev,代碼行數:9,代碼來源:ComposerServiceProvider.php

示例14: boot

 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot(ViewFactory $view)
 {
     //Share notifacations across all views
     $view->composer('master-back', 'App\\Http\\ViewComposers\\ApplicationComposer');
 }
開發者ID:deferdie,項目名稱:tweet,代碼行數:10,代碼來源:AppServiceProvider.php

示例15: boot

 public function boot(Factory $factory)
 {
     $factory->composer('*', CurrentUserComposer::class);
 }
開發者ID:MalDiazC,項目名稱:turtles,代碼行數:4,代碼來源:ViewComposerServiceProvider.php


注:本文中的Illuminate\Contracts\View\Factory::composer方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。