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


PHP Handler::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * @param LoggerInterface $log
  */
 public function __construct(LoggerInterface $log)
 {
     parent::__construct($log);
     $this->integration = new LaravelIntegration();
     $this->renderContainer = new RendererContainer($this->integration);
     $this->registerCustomExceptions();
 }
開發者ID:guduchango,項目名稱:limoncello-collins,代碼行數:10,代碼來源:Handler.php

示例2: __construct

 /**
  * @param LoggerInterface $log
  */
 public function __construct(LoggerInterface $log)
 {
     parent::__construct($log);
     $this->integration = new LaravelIntegration();
     $extensionsClosure = function () {
         /** @var SupportedExtensionsInterface $supportedExtensions */
         $supportedExtensions = app()->resolved(SupportedExtensionsInterface::class) === false ? null : app()->make(SupportedExtensionsInterface::class);
         return $supportedExtensions;
     };
     $this->renderContainer = new RenderContainer(new Factory(), $this->integration, $extensionsClosure);
     $this->registerCustomExceptions();
 }
開發者ID:jonpitch,項目名稱:limoncello-collins,代碼行數:15,代碼來源:Handler.php

示例3: __construct

 public function __construct(MSApplicationInsightsHelpers $msApplicationInsightsHelpers, LoggerInterface $log)
 {
     $this->msApplicationInsightsHelpers = $msApplicationInsightsHelpers;
     parent::__construct($log);
 }
開發者ID:marchie,項目名稱:ms-application-insights-laravel,代碼行數:5,代碼來源:MSApplicationInsightsExceptionHandler.php

示例4: __construct

 /**
  * @param LoggerInterface $log
  * @param ResponseFactory $responseFactory
  */
 public function __construct(LoggerInterface $log, ResponseFactory $responseFactory)
 {
     parent::__construct($log);
     $this->responseFactory = $responseFactory;
 }
開發者ID:chico-rei,項目名稱:restify,代碼行數:9,代碼來源:Handler.php

示例5: __construct

 public function __construct(LoggerInterface $log, CorsService $corsService)
 {
     parent::__construct($log);
     $this->corsService = $corsService;
 }
開發者ID:davidpetro88,項目名稱:laravel-codedelivery,代碼行數:5,代碼來源:Handler.php

示例6: __construct

 /**
  * Handler constructor.
  * @param \Psr\Log\LoggerInterface $log
  * @param \Illuminate\Mail\Mailer $mailer
  */
 public function __construct(LoggerInterface $log, Mailer $mailer)
 {
     parent::__construct($log);
     $this->mailer = $mailer;
 }
開發者ID:atrauzzi,項目名稱:laravel-drydock,代碼行數:10,代碼來源:Handler.php

示例7: __construct

 /**
  * Create a new exception handler instance.
  *
  * @param \Illuminate\Contracts\Container\Container $container
  *
  * @return void
  */
 public function __construct(Container $container)
 {
     $this->config = $container->config->get('exceptions', []);
     $this->container = $container;
     parent::__construct($container->make(LoggerInterface::class));
 }
開發者ID:henryngoo,項目名稱:Laravel-Exceptions,代碼行數:13,代碼來源:ExceptionHandler.php

示例8: __construct

 public function __construct(Builder $viewBuilder, LoggerInterface $log)
 {
     $this->viewBuilder = $viewBuilder;
     parent::__construct($log);
 }
開發者ID:alerj,項目名稱:parlamentojuvenil,代碼行數:5,代碼來源:Handler.php

示例9: __construct

 /**
  * Create a new exception handler instance.
  *
  * @param Container $container
  */
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->mergeConfiguredDontReportExceptions();
 }
開發者ID:czim,項目名稱:laravel-cms-core,代碼行數:10,代碼來源:Handler.php

示例10: __construct

 public function __construct(LoggerInterface $log, JsonRespond $jsonRespond)
 {
     parent::__construct($log);
     $this->jsonRespond = $jsonRespond;
 }
開發者ID:GiedriusQ,項目名稱:taksistas,代碼行數:5,代碼來源:Handler.php

示例11: __construct

 public function __construct(LoggerInterface $log)
 {
     parent::__construct(app());
     $this->isDebug = config('app.debug');
 }
開發者ID:swayok,項目名稱:laravel-extended-errors,代碼行數:5,代碼來源:ExceptionHandler.php

示例12: __construct

 /**
  * Controller constructor.
  *
  * @param \Psr\Log\LoggerInterface $log
  * @param \Eos\Exceptions\Factory $factory
  */
 public function __construct(LoggerInterface $log, Factory $factory)
 {
     parent::__construct($log);
     $this->factory = $factory;
 }
開發者ID:ozanmuyes,項目名稱:eos-api,代碼行數:11,代碼來源:Handler.php


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