Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Replace Zend\Autoload with Composer #164

Closed
wants to merge 4 commits into from
Closed

Replace Zend\Autoload with Composer #164

wants to merge 4 commits into from

Conversation

gianarb
Copy link

@gianarb gianarb commented Feb 19, 2015

all modules are loaded with Composer PSR-4 and classmap autoload

This project have not tests, I tried several parts of it but I don't know all system.. This is a good starting point

all modules are loaded with Composer PSR-4 and classmap autoload
@@ -4,20 +4,6 @@
$loader = include 'vendor/autoload.php';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gianarb

I would even go as far as to just include vendor/autoload.php in public/index.php instead of including this file.

What do you think?

Like this here: localheinz@637fb36

(Sorry, just wanted to open a PR with that, then saw that you already had opened one 3 hours ago 😉)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion this is a good improvement! :) Would you push it in my feature branch?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"autoload": {
"psr-4": {
"Api\\": "./module/Api",
"Application\\": "./module/Application/src/Application",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "Application\": "./module/Application/src/" ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm I'm working in PSR-4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as psr-4, we don't need too deep folder imo

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this step I keep same folding :)
maybe module/Application/src/Application in my opinion is a standard ZF module folder now

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the dots? i think all can go away? 👴

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps that module folder has to go and give way to just src

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes yes :) would you send me a PR?

2015-02-21 19:50 GMT+01:00 Luis Cordova notifications@github.com:

In composer.json
#164 (comment):

@@ -9,5 +9,34 @@
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.",
"zendframework/zendservice-recaptcha": "2.0.
"

  • },
  • "autoload": {
  •    "psr-4": {
    
  •        "Api\": "./module/Api",
    
  •        "Application\": "./module/Application/src/Application",
    

why the dots? i think all can go away? [image: 👴]


Reply to this email directly or view it on GitHub
https://github.com/zendframework/zf-web/pull/164/files#r25124488.

Gianluca Arbezzano
www.gianarb.it

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will send a PR if at least @Ocramius or some other maintainer gives me green light

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Ocramius
Copy link
Member

I like, though I'm not aware of the deployment process involved.

👍

@froschdesign
Copy link
Member

Related to #163

@gianarb gianarb changed the title [WIP] Replace Zend\Autoload with Composer Replace Zend\Autoload with Composer Apr 1, 2015
@froschdesign froschdesign self-assigned this Jul 21, 2015
@gianarb
Copy link
Author

gianarb commented Nov 26, 2015

@weierophinney are you interested?
Thanks

@froschdesign
Copy link
Member

@gianarb
Yes!

@localheinz
Copy link
Member

@gianarb

👍

@samsonasik
Copy link
Contributor

@gianarb need rebase

@froschdesign
Copy link
Member

Fixed with e8a788c

Thanks to @gianarb and @localheinz !

@gianarb
Copy link
Author

gianarb commented Nov 27, 2015

Thanks

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

Successfully merging this pull request may close these issues.

None yet

6 participants