1
0
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:
Derick Rethans
2025-02-07 10:52:35 +00:00
parent 81220ae76f
commit 7541512acf
3 changed files with 3 additions and 2 deletions

View File

@@ -822,7 +822,7 @@ function quux(ErrorCode $errorCode)
// When written, this code appears to cover all cases
match ($errorCode) {
ErrorCode::SOMETHING_BROKE => true,
}
};
}
?>

View File

@@ -78,6 +78,7 @@ class Bootstrap extends Yaf_Bootstrap_Abstract{
public function _initLoader($dispatcher) {
Yaf_Loader::getInstance()->registerLocalNameSpace(array("Foo", "Bar"));
}
}
?>
]]>
</programlisting>

View File

@@ -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();