当前位置: 首页>>代码示例>>PHP>>正文


PHP Application::call方法代码示例

本文整理汇总了PHP中Illuminate\Contracts\Foundation\Application::call方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::call方法的具体用法?PHP Application::call怎么用?PHP Application::call使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Contracts\Foundation\Application的用法示例。


在下文中一共展示了Application::call方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setup

 /**
  *
  */
 public final function setup()
 {
     if (method_exists($this, 'boot')) {
         $this->app->call([$this, 'boot']);
     }
     $this->setupCompleted = true;
     $this->halted = false;
 }
开发者ID:hramose,项目名称:plus-admin,代码行数:11,代码来源:Service.php

示例2: __construct

 /**
  * Create a new instance of Storytelling.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  */
 public function __construct($app)
 {
     $this->app = $app;
     if (method_exists($this, 'initiate')) {
         $app->call([$this, 'initiate']);
     }
 }
开发者ID:dinghua,项目名称:crm,代码行数:12,代码来源:Parser.php

示例3: edit

 /**
  * @return \Cocona\Core\Html\Elements\Form
  */
 public function edit($id)
 {
     $form = $this->app->call([$this->resource, 'form']);
     // Create the route param from the name
     $param = str_replace('-', '_', snake_case($this->resource->name()));
     $form->action($this->to('update', [$param => $id]));
     // Spoof the form method and add the CSRF token
     $form->hidden('_method', 'PUT');
     $form->token();
     // Fill the form with the model and overwrite it with
     // the request if is available
     $form->fill($this->resource->item($id), $this->session->getOldInput());
     return $form;
 }
开发者ID:cocona,项目名称:core,代码行数:17,代码来源:ResourceController.php

示例4: registerAdditionalRoutes

 /**
  * Register additional routes.
  *
  * @param AddonServiceProvider $provider
  */
 protected function registerAdditionalRoutes(AddonServiceProvider $provider)
 {
     if ($this->routesAreCached()) {
         return;
     }
     if (method_exists($provider, 'map')) {
         try {
             $this->application->call([$provider, 'map']);
         } catch (\Exception $e) {
             /*
              * If, for whatever reason, this fails let
              * it fail silently. Mapping additional routes
              * could be volatile at certain application states.
              */
         }
     }
 }
开发者ID:huglester,项目名称:streams-platform,代码行数:22,代码来源:AddonProvider.php

示例5: filtersPass

 /**
  * Determine if the filters pass for the event.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @return bool
  */
 public function filtersPass($app)
 {
     foreach ($this->filters as $callback) {
         if (!$app->call($callback)) {
             return false;
         }
     }
     foreach ($this->rejects as $callback) {
         if ($app->call($callback)) {
             return false;
         }
     }
     return true;
 }
开发者ID:rosswilson252,项目名称:framework,代码行数:20,代码来源:Event.php

示例6: filtersPass

 /**
  * Determine if the filters pass for the event.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @return bool
  */
 protected function filtersPass(Application $app)
 {
     if ($this->filter && !$app->call($this->filter) || $this->reject && $app->call($this->reject)) {
         return false;
     }
     return true;
 }
开发者ID:EnmanuelCode,项目名称:backend-laravel,代码行数:13,代码来源:Event.php

示例7: execute

 /**
  * Execute the console command.
  *
  * @param  \Symfony\Component\Console\Input\InputInterface  $input
  * @param  \Symfony\Component\Console\Output\OutputInterface  $output
  * @return mixed
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $method = method_exists($this, 'handle') ? 'handle' : 'fire';
     return $this->laravel->call([$this, $method]);
 }
开发者ID:betes-curieuses-design,项目名称:ElieJosiePhotographie,代码行数:12,代码来源:Command.php


注:本文中的Illuminate\Contracts\Foundation\Application::call方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。