Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR4 対応 #23

Open
ndxbn opened this issue Oct 10, 2017 · 1 comment
Open

PSR4 対応 #23

ndxbn opened this issue Oct 10, 2017 · 1 comment

Comments

@ndxbn
Copy link

ndxbn commented Oct 10, 2017

PSR4 に対応しないと、 #22 をしようにも、「class map」 か 「files」で列挙する かのどちらかでなければ、 composer.json にファイル一覧をハードコーディングするハメになります。メンテナンス性が著しく低いと思いますので、 事前に対応をすべきだと思います。

PSR4 対応するために必要な作業は、以下の通りです。

  • 名前空間のトップレベルに、なにかしらの共通な「Vendor name」(例えば、 MagicWeapon など)をつける。
  • 拡張子が .inc になっているものを、 .php に変更
@gallu
Copy link
Owner

gallu commented Jul 28, 2018

こっち、返信してなかったねぇ。
うん上述の2点は把握している。

そのうち、拡張子については「元々の慣習」でやってただけ、なので、そんなに変更に強い抵抗感はない感じ。
名前空間は、ちょっと、まだ思案しているんだよねぇ。PHP5.2とか、はげしく「切りたい」ような気がするんだけど、どうもまだ踏ん切りがついていない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants