本文整理汇总了PHP中Sentry::_init方法的典型用法代码示例。如果您正苦于以下问题:PHP Sentry::_init方法的具体用法?PHP Sentry::_init怎么用?PHP Sentry::_init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sentry
的用法示例。
在下文中一共展示了Sentry::_init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Part of the Sentry bundle for Laravel.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file. It is also available at
* the following URL: http://www.opensource.org/licenses/BSD-3-Clause
*
* @package Sentry
* @version 1.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011 - 2012, Cartalyst LLC
* @link http://cartalyst.com
*/
// Autoload classes
Autoloader::namespaces(array('Sentry' => Bundle::path('sentry')));
// Set the global alias for Sentry
Autoloader::alias('Sentry\\Sentry', 'Sentry');
Autoloader::alias('Sentry\\SentryException', 'SentryException');
Sentry::_init();