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

Updated composer.json to PSR-4 autoloader. #13

Merged
merged 1 commit into from
May 4, 2015
Merged

Updated composer.json to PSR-4 autoloader. #13

merged 1 commit into from
May 4, 2015

Conversation

jaakristioja
Copy link
Contributor

The PSR-0 format has been deprecated in favor of PSR-4. For details, see:

@JeroenDeDauw
Copy link
Member

I know the standard is deprecated. What about support for PSR-0 in Composer itself?

@jaakristioja
Copy link
Contributor Author

Afaik composer has support for both. According to http://www.php-fig.org/psr/psr-4/ both could be used:

It is fully interoperable, and can be used in addition to any other autoloading specification, including PSR-0.

So I guess it should actually be possible to have both "psr-0" and "psr-4" sections in composer.json without them conflicting.

@JeroenDeDauw
Copy link
Member

Yes, I know Composer supports both, and that one can use both at the same time. The question is if the PSR-0 support in Composer in deprecated in any way. I know there are big projects, such as Doctrine, which do not like PSR-4 and demand usage of PSR-0 in their package definitions.

For this projects it's fine though, I'll merge once the CI passed.

JeroenDeDauw added a commit that referenced this pull request May 4, 2015
Updated composer.json to PSR-4 autoloader.
@JeroenDeDauw JeroenDeDauw merged commit 425beaa into DataValues:master May 4, 2015
@jaakristioja jaakristioja deleted the switch-to-psr4 branch May 4, 2015 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants