mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Fixed syntax in some example
This commit is contained in:
@@ -822,7 +822,7 @@ function quux(ErrorCode $errorCode)
|
||||
// When written, this code appears to cover all cases
|
||||
match ($errorCode) {
|
||||
ErrorCode::SOMETHING_BROKE => true,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -78,6 +78,7 @@ class Bootstrap extends Yaf_Bootstrap_Abstract{
|
||||
public function _initLoader($dispatcher) {
|
||||
Yaf_Loader::getInstance()->registerLocalNameSpace(array("Foo", "Bar"));
|
||||
}
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
||||
@@ -105,7 +105,7 @@ ap.modules=Index
|
||||
<![CDATA[
|
||||
<?php
|
||||
defined('APPLICATION_PATH') // APPLICATION_PATH will be used in the ini config file
|
||||
|| define('APPLICATION_PATH', __DIR__));
|
||||
|| define('APPLICATION_PATH', __DIR__);
|
||||
|
||||
$application = new Yaf_Application(APPLICATION_PATH.'/conf/application.ini');
|
||||
$application->bootstrap()->run();
|
||||
|
||||
Reference in New Issue
Block a user