-
Notifications
You must be signed in to change notification settings - Fork 37
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
/devmodules question #45
Comments
The devmodules can be a little tricky. If you put a module into the devmodules folder you need to remove it from composer because the composer autoloader takes priority over EVERYTHING! lol. That brings it's own set of issues however... some modules are a dependency of others so if you remove it from composer it may cause dependency resolution problems. For example SpeckUserAddress requires SpeckAddress and if you want to work on speck Address in the devmodules folder you need to put all the things that depend on it in there as well. Personally I tend to not use that and tell composer to prefer source and then I can work directly in the vendor directory. I agree it's not the most practical way around it. |
Thank you for reply.
"devmodules": [
"mkdir devmodules",
"git clone git://github.com/4orever/ppc-auth/ devmodules/ppc-auth",
"git clone git://github.com/4orever/ppc-backend/ devmodules/ppc-backend",
"git clone git://github.com/4orever/ppc-backend-client/ devmodules/ppc-backend-client",
"git clone git://github.com/4orever/ppc-dev-mode/ devmodules/ppc-dev-mode",
"git clone git://github.com/4orever/ppc-main-assets/ devmodules/ppc-main-assets",
"rm -rf vendor/4orever"
]
"autoload-dev": {
"psr-4": {
"PpcMainAssets\\": "devmodules/ppc-main-assets/",
"PpcBackend\\": "devmodules/ppc-backend/src",
"PpcAuth\\": "devmodules/ppc-auth/src"
},
"classmap":[
"devmodules/ppc-backend/Module.php",
"devmodules/ppc-backend-client/Module.php",
"devmodules/ppc-auth/Module.php"
]
}
I don't like to use standard I hope it would be usefull. |
there is alternative option, read http://blog.naderman.de/2014/02/04/composer-skipping-a-dependency/ That way composer dependencies are resolved as normal but package is not installed, all you need to do from there is to drop module into devmodules folder and enable in app config. |
I like your module structure. But how do you organize your code for development?
There is ./devmodules dir in the project. I think you put source of related modules there and change config for using them instead of ./vendor during development, do you? What is the best way to make it automatically with composer?
I ask this question on StackOverflow with some comments and my assumptions. Please, give me an advise:
http://stackoverflow.com/questions/27300366/getting-development-copy-of-zf2-module
The text was updated successfully, but these errors were encountered: