PSR-0 のクラスローダーは、PEARライブラリをロードできる
PSR、今日調べたのだけど、Webの解説記事が2010年で出尽くしていることを知った・・・。巡回して概要を把握できた。
PSR-0 のクラスローダーは、PEARライブラリをロードできる
これも知らなくて、@koriym さんに教えて頂きました。感謝です。
stackoverflow の一部超訳メモ。
http://stackoverflow.com/questions/12828186/can-psr-0-class-autoloader-load-pear-library
Q. Can PSR-0 class autoloader, load PEAR library?
PSR-0 のクラスローダは、PEARライブラリをロードできるのか?
A1. PSR-0 should be able to work with both full-qualified namespaces and underscored classes. All you should need to do is replace the underscores with a directory seperator. A good example would be:
PSR-0 は、完全修飾したネームスペースと、アンダースコアの付いたクラス、どちらについても、動作することができるようにしなければならないのだよ。
やらなくちゃいけないのは、アンダースコアをDIRECTORY_SEPARATOR に置換することだけなのです。
A2. Should PSR-0 compatible class loader be able to load PEAR libs too? Yes, PSR-0 is interoperable with the PEAR naming conventions of classes and files. This is not publicly documented any longer, but it is commonly known. ||<< PSR-0 準拠クラスローダは、PEARライブラリモロードすべきか?そうだよ。 PSR-0 はPEARのクラスとファイルの命名規約に相互運用対応している。