-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.xml
174 lines (164 loc) · 6.42 KB
/
package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.7.2" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
<name>Piece_Unity_Component_ExceptionHandler</name>
<channel>pear.piece-framework.com</channel>
<summary>A component for exception handling</summary>
<description>Piece_Unity_Component_ExceptionHandler provides a simple exception handling system which can be used in your bootstrap code as follows:
webapp/config/bootstrap.php:
<?php
...
Piece_Unity_Service_ExceptionHandler::register(new Piece_Unity_Service_ExceptionHandler_DebugInfo());
Piece_Unity_Service_ExceptionHandler::register(new Piece_Unity_Service_ExceptionHandler_ErrorLog());
Piece_Unity_Service_ExceptionHandler::enable();
...
The last one registered will be the first one called.
Built-in exception handlers are:
Piece_Unity_Service_ExceptionHandler_DebugInfo: Outputs the exception details as a HTML page.
Piece_Unity_Service_ExceptionHandler_ErrorLog: Logs the exception message by error_log().
Piece_Unity_Service_ExceptionHandler_InternalServerError: Outputs a typical "Internal Server Error" HTML page.
Additionally, any exception handlers which implement the interface Piece_Unity_Service_ExceptionHandler_Interface can be used.</description>
<lead>
<name>KUBO Atsuhiro</name>
<user>iteman</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<helper>
<name>KUBO Noriko</name>
<user>noricot</user>
<email>[email protected]</email>
<active>yes</active>
</helper>
<date>2009-03-26</date>
<time>16:22:29</time>
<version>
<release>0.2.0</release>
<api>0.2.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<notes>A new release of Piece_Unity_Component_ExceptionHandler is now available.
What's New in Piece_Unity_Component_ExceptionHandler 0.2.0
* Improved the DebugInfo exception handler: The limit of the ripped source line has been changed to 21. (10 + 1 + 10)
* Improved HTML rendering: The behavior of HTML rendering has been changed so as to send the HTTP status line and Content-Type header only if the headers haven't been sent.</notes>
<contents>
<dir baseinstalldir="/" name="/">
<dir name="data">
<dir name="pear.piece-framework.com">
<dir name="Piece_Unity_Component_ExceptionHandler">
<file name="DebugInfo.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
<file name="InternalServerError.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir> <!-- /data/pear.piece-framework.com/Piece_Unity_Component_ExceptionHandler -->
</dir> <!-- /data/pear.piece-framework.com -->
</dir> <!-- /data -->
<dir name="doc">
<file name="LICENSE" role="doc">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir> <!-- /doc -->
<dir name="src">
<dir name="Piece">
<dir name="Unity">
<dir name="Service">
<dir name="ExceptionHandler">
<dir name="Rendering">
<file name="PHP.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir> <!-- /src/Piece/Unity/Service/ExceptionHandler/Rendering -->
<file name="DebugInfo.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
<file name="ErrorLog.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
<file name="Interface.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
<file name="InternalServerError.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir> <!-- /src/Piece/Unity/Service/ExceptionHandler -->
<file name="ExceptionHandler.php" role="php">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir> <!-- /src/Piece/Unity/Service -->
</dir> <!-- /src/Piece/Unity -->
</dir> <!-- /src/Piece -->
</dir> <!-- /src -->
</dir> <!-- / -->
</contents>
<dependencies>
<required>
<php>
<min>5.0.0</min>
</php>
<pearinstaller>
<min>1.4.3</min>
</pearinstaller>
<package>
<name>Piece_Unity</name>
<channel>pear.piece-framework.com</channel>
<min>1.5.0</min>
</package>
<package>
<name>Stagehand_HTTP_Status</name>
<channel>pear.piece-framework.com</channel>
<min>1.0.0</min>
</package>
<package>
<name>Stagehand_LegacyError</name>
<channel>pear.piece-framework.com</channel>
<min>0.1.0</min>
</package>
<extension>
<name>pcre</name>
</extension>
<extension>
<name>date</name>
</extension>
</required>
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>0.2.0</release>
<api>0.2.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2009-03-26</date>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<notes>A new release of Piece_Unity_Component_ExceptionHandler is now available.
What's New in Piece_Unity_Component_ExceptionHandler 0.2.0
* Improved the DebugInfo exception handler: The limit of the ripped source line has been changed to 21. (10 + 1 + 10)
* Improved HTML rendering: The behavior of HTML rendering has been changed so as to send the HTTP status line and Content-Type header only if the headers haven't been sent.</notes>
</release>
<release>
<version>
<release>0.1.0</release>
<api>0.1.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2009-03-24</date>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<notes>The first beta release of Piece_Unity_Component_ExceptionHandler.</notes>
</release>
</changelog>
</package>