なぜ PageリソースとAppリソースがあるのか
どこから来たのか
BEAR.Sunday以前のフレームワーク、BEAR.Saturdayがページとリソースというレイヤーを持っていました。
https://blog.excite.co.jp/exdev/25879834/
MVCでいうとコントローラーの役割が"ページ"。ページクラスはコントローラーと違ってルーターによるメソッドのマッピングは必要なく、HTTPメソッドにマップするメソッドがありました。
# usage: . ~/.phpv php_version | |
export PATH="/opt/homebrew/opt/php@$1/bin/:$PATH"; php -v |
Wife: Who is Roy Fielding? | |
Ryan: Some guy. He's smart. | |
Wife: Oh. What did he do? | |
Ryan: He helped write the first web servers and then did a ton of research explaining why the web works the way it does. Oh yea, his name is on the specification for the protocol that is used to get pages from servers to your browser. | |
Wife: How does it work? |
<?php | |
namespace Application; | |
$fileName = '/not-writable'; | |
// Human-only readable exceptions | |
// throw new \RuntimeException("{$fileName} is not writable."); | |
// Semantic exceptions |
<?xml version="1.0" encoding="UTF-8"?> | |
<alps | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="https://alps-io.github.io/schemas/alps.xsd"> | |
<title>ALPS3min</title> | |
<!-- Ontology --> | |
<descriptor id="name" /> | |
<!-- Taxonomy --> |
BEAR.Sunday以前のフレームワーク、BEAR.Saturdayがページとリソースというレイヤーを持っていました。
https://blog.excite.co.jp/exdev/25879834/
MVCでいうとコントローラーの役割が"ページ"。ページクラスはコントローラーと違ってルーターによるメソッドのマッピングは必要なく、HTTPメソッドにマップするメソッドがありました。
<?php | |
if (PHP_VERSION_ID >= 80100) { | |
set_error_handler(static function (int $errno, string $errstr, string $errfile) { | |
return $errno === E_DEPRECATED && str_contains($errfile, dirname(__DIR__) . '/vendor'); | |
}); | |
} |
Imperial Rescript on Surrender
朕深ク世界ノ大勢ト帝國ノ現狀トニ鑑ミ非常ノ措置ヲ以テ時局ヲ收拾セムト欲シ玆ニ忠良ナル爾臣民ニ吿ク
私は、世界の情勢と日本の現状を深く考え、緊急の方法でこの事態を収拾しようとし、忠実なるあなた方臣民に告げる。
After pondering deeply the general trends of the world and the actual conditions obtaining in Our Empire today, We have decided to effect a settlement of the present situation by resorting to an extraordinary measure.
> 朕ハ帝國政府ヲシテ米英支蘇四國ニ對シ其ノ共同宣言ヲ受諾スル旨通吿セシメタリ
<?xml version="1.0"?> | |
<xs:schema | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
targetNamespace="http://pmd.sf.net/ruleset/1.0.0" | |
elementFormDefault="qualified"> | |
<xs:element name="ruleset"> | |
<xs:complexType> | |
<xs:sequence> |
<?php | |
// preloadされていないクラスを見つけるローダー | |
$notPreloaded = new ArrayObject(); | |
spl_autoload_register(function (string $class) use ($notPreloaded) { | |
$notPreloaded[] = $class; | |
}, | |
true, | |
true | |
); |
/opt/homebrew/Cellar/php/8.0.2/include/php/ext/pcre/php_pcre.h:23:10: fatal error:
'pcre2.h' file not found
#include "pcre2.h"
^~~~~~~~~
1 error generated.
To fix this issue, Symlink pcre2.h
manually.