摘要: 事件模块是一个由四个静态数组构成的部件,存在于内存中,提供事件模拟。<?php namespace Laravel;class Event { /** * 所有注册的事件 * * @var array */ public static $events = array(); /** * 队列事件 等待flush * * @var array */ public static $queued = array(); /** * 队列flush之后回调 * * @var array */ public static $flushers = array(); /** * 注册事... 阅读全文
posted @ 2013-04-01 16:32 snakevash 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 首先是中文注释:<?php namespace Laravel;class Autoloader { /** * 类名到文件名得映射 * * @var array */ public static $mappings = array(); /** * PSR-0命名转换目录 * * @var array */ public static $directories = array(); /** * 命名空间和目录的映射 * * @var array */ public static $namespaces = array(); /** * 下划线类库和目录映射 ... 阅读全文
posted @ 2013-04-01 14:55 snakevash 阅读(1857) 评论(0) 推荐(0) 编辑
摘要: 为了探索一下lein的工作方式,看了几遍lein.bat,写了一点笔记。@echo offsetLocal EnableExtensions EnableDelayedExpansionset LEIN_VERSION=2.0.0if "%LEIN_VERSION:~-9%" == "-SNAPSHOT" ( set SNAPSHOT=YES) else ( set SNAPSHOT=NO):: 原始工作目录set ORIGINAL_PWD=%CD%:: 处理文件地址if "%ORIGINAL_PWD:~-1%x" == " 阅读全文
posted @ 2013-04-01 11:08 snakevash 阅读(832) 评论(0) 推荐(0) 编辑