本文整理匯總了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();
}
示例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();
}
示例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;
}
示例5: __construct
public function __construct(LoggerInterface $log, CorsService $corsService)
{
parent::__construct($log);
$this->corsService = $corsService;
}
示例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;
}
示例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));
}
示例8: __construct
public function __construct(Builder $viewBuilder, LoggerInterface $log)
{
$this->viewBuilder = $viewBuilder;
parent::__construct($log);
}
示例9: __construct
/**
* Create a new exception handler instance.
*
* @param Container $container
*/
public function __construct(Container $container)
{
parent::__construct($container);
$this->mergeConfiguredDontReportExceptions();
}
示例10: __construct
public function __construct(LoggerInterface $log, JsonRespond $jsonRespond)
{
parent::__construct($log);
$this->jsonRespond = $jsonRespond;
}
示例11: __construct
public function __construct(LoggerInterface $log)
{
parent::__construct(app());
$this->isDebug = config('app.debug');
}
示例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;
}