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


PHP Autoloader::mappings方法代码示例

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


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

示例1: array

Config::load('session');
Config::load('error');
Autoloader::register(MWP_CORE_PATH . 'twig/models/');
Autoloader::register(MWP_CORE_PATH . 'services/');
Autoloader::register(APP_PATH . 'services/');
Autoloader::libraries(array('Twig', 'Linkedstore', 'Arraid'));
/**
 * Register the Autoloader's "load" method on the auto-loader stack.
 * This method provides the lazy-loading of all class files, as well
 * as any PSR-0 compliant libraries used by the application.
 */
spl_autoload_register(array('Laravel\\Autoloader', 'load'));
/**
 * Build the Laravel framework class map. This provides a super fast
 * way of resolving any Laravel class name to its appropriate path.
 * More mappings can also be registered by the developer as needed.
 */
Autoloader::$mappings = array('Laravel\\Arr' => SYS_PATH . 'arr' . EXT, 'Laravel\\Asset' => SYS_PATH . 'asset' . EXT, 'Laravel\\Auth' => SYS_PATH . 'auth' . EXT, 'Laravel\\Benchmark' => SYS_PATH . 'benchmark' . EXT, 'Laravel\\Blade' => SYS_PATH . 'blade' . EXT, 'Laravel\\Config' => SYS_PATH . 'config' . EXT, 'Laravel\\Cookie' => SYS_PATH . 'cookie' . EXT, 'Laravel\\Crypter' => SYS_PATH . 'crypter' . EXT, 'Laravel\\File' => SYS_PATH . 'file' . EXT, 'Laravel\\Form' => SYS_PATH . 'form' . EXT, 'Laravel\\Hash' => SYS_PATH . 'hash' . EXT, 'Laravel\\HTML' => SYS_PATH . 'html' . EXT, 'Laravel\\Inflector' => SYS_PATH . 'inflector' . EXT, 'Laravel\\Input' => SYS_PATH . 'input' . EXT, 'Laravel\\Lang' => SYS_PATH . 'lang' . EXT, 'Laravel\\Memcached' => SYS_PATH . 'memcached' . EXT, 'Laravel\\Messages' => SYS_PATH . 'messages' . EXT, 'Laravel\\Paginator' => SYS_PATH . 'paginator' . EXT, 'Laravel\\Redirect' => SYS_PATH . 'redirect' . EXT, 'System\\Redis' => MWP_SERVICE_PATH . 'eloquent/system/redis' . EXT, 'Laravel\\Request' => SYS_PATH . 'request' . EXT, 'Laravel\\Response' => SYS_PATH . 'response' . EXT, 'Laravel\\Section' => SYS_PATH . 'section' . EXT, 'Laravel\\Str' => SYS_PATH . 'str' . EXT, 'Laravel\\URI' => SYS_PATH . 'uri' . EXT, 'Laravel\\URL' => SYS_PATH . 'url' . EXT, 'Laravel\\Validator' => SYS_PATH . 'validator' . EXT, 'Laravel\\View' => SYS_PATH . 'view' . EXT, 'Laravel\\Cache\\Manager' => SYS_PATH . 'cache/manager' . EXT, 'Laravel\\Cache\\Drivers\\APC' => SYS_PATH . 'cache/drivers/apc' . EXT, 'Laravel\\Cache\\Drivers\\Driver' => SYS_PATH . 'cache/drivers/driver' . EXT, 'Laravel\\Cache\\Drivers\\File' => SYS_PATH . 'cache/drivers/file' . EXT, 'Laravel\\Cache\\Drivers\\Memcached' => SYS_PATH . 'cache/drivers/memcached' . EXT, 'Laravel\\Cache\\Drivers\\Redis' => SYS_PATH . 'cache/drivers/redis' . EXT, 'Laravel\\Database\\Connection' => SYS_PATH . 'database/connection' . EXT, 'Laravel\\Database\\Expression' => SYS_PATH . 'database/expression' . EXT, 'Laravel\\Database\\Manager' => SYS_PATH . 'database/manager' . EXT, 'Laravel\\Database\\Query' => SYS_PATH . 'database/query' . EXT, 'Laravel\\Database\\Connectors\\Connector' => SYS_PATH . 'database/connectors/connector' . EXT, 'Laravel\\Database\\Connectors\\MySQL' => SYS_PATH . 'database/connectors/mysql' . EXT, 'Laravel\\Database\\Connectors\\Postgres' => SYS_PATH . 'database/connectors/postgres' . EXT, 'Laravel\\Database\\Connectors\\SQLite' => SYS_PATH . 'database/connectors/sqlite' . EXT, 'Laravel\\Database\\Eloquent\\Hydrator' => SYS_PATH . 'database/eloquent/hydrator' . EXT, 'Laravel\\Database\\Eloquent\\Model' => SYS_PATH . 'database/eloquent/model' . EXT, 'Laravel\\Database\\Grammars\\Grammar' => SYS_PATH . 'database/grammars/grammar' . EXT, 'Laravel\\Database\\Grammars\\MySQL' => SYS_PATH . 'database/grammars/mysql' . EXT, 'Laravel\\Routing\\Controller' => SYS_PATH . 'routing/controller' . EXT, 'Laravel\\Routing\\Filter' => SYS_PATH . 'routing/filter' . EXT, 'Laravel\\Routing\\Loader' => SYS_PATH . 'routing/loader' . EXT, 'Laravel\\Routing\\Route' => SYS_PATH . 'routing/route' . EXT, 'Laravel\\Routing\\Router' => SYS_PATH . 'routing/router' . EXT, 'Laravel\\Session\\Payload' => SYS_PATH . 'session/payload' . EXT, 'Laravel\\Session\\Drivers\\APC' => SYS_PATH . 'session/drivers/apc' . EXT, 'Laravel\\Session\\Drivers\\Cookie' => SYS_PATH . 'session/drivers/cookie' . EXT, 'Laravel\\Session\\Drivers\\Database' => SYS_PATH . 'session/drivers/database' . EXT, 'Laravel\\Session\\Drivers\\Driver' => SYS_PATH . 'session/drivers/driver' . EXT, 'Laravel\\Session\\Drivers\\Factory' => SYS_PATH . 'session/drivers/factory' . EXT, 'Laravel\\Session\\Drivers\\File' => SYS_PATH . 'session/drivers/file' . EXT, 'Laravel\\Session\\Drivers\\Memcached' => SYS_PATH . 'session/drivers/memcached' . EXT, 'Laravel\\Session\\Drivers\\Redis' => SYS_PATH . 'session/drivers/redis' . EXT, 'Laravel\\Session\\Drivers\\Sweeper' => SYS_PATH . 'session/drivers/sweeper' . EXT);
/**
 * Register the default timezone for the application. This will be
 * the default timezone used by all date / timezone functions in
 * the entire application.
 */
date_default_timezone_set(Config::$items['application']['timezone']);
/**
 * Define a few global, convenient functions. These functions
 * provide short-cuts for things like the retrieval of language
 * lines and HTML::entities. They just make our lives as devs a
 * little sweeter and more enjoyable.
 */
require SYS_PATH . 'helpers' . EXT;
开发者ID:jknox12,项目名称:mirror,代码行数:31,代码来源:core.php


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