Closed mattisdada closed 10 years ago
This is planned to happen soon as I have the same need at my job, hehe.
As a temporary workaround for anyone who stumbles upon this. A solution I used was:
Created an Artisan command that copys the WSDL files to the vendor folders (3 files). Example, "php artisan salesforce:update".
Edit composer.json to have:
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize",
"php artisan salesforce:update"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize",
"php artisan salesforce:update"
],
Adding in the new command into "post-update-cmd" and "post-install-cmd". This is purely a workaround that does not involve editing the main library. Once our lovely dev davispeixoto updates the lib to fix the issue, this workaround will no longer be needed and should not be used.
Another workaround - the one I've implemented in my side - is using git post-merge hook, which is a simple shell script to do the very same thing, copy the wsdl from one folder to another.
On Wed, May 28, 2014 at 11:57 PM, Matthew Gladman notifications@github.com wrote:
As a temporary workaround for anyone who stumbles upon this. A solution I used was:
Create a salesforce:update Artisan command that copys the wsdl file to the vendor file. Example, "php artisan salesforce:update".
Edit composer.json to have:
"post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize", "php artisan salesforce:update" ],
Adding in the new command into "post-update-cmd". This is purely a workaround that does not involve editing the main library.
— Reply to this email directly or view it on GitHub https://github.com/davispeixoto/Laravel-4-Salesforce/issues/3#issuecomment-44489443 .
Um abraço, Perdigão.
Change implemented. Just add the path to wsdl in config file.
I have a huge amount of customer objects and require to use my enterprise.wsdl.xml (rather than "stock"). It would be great to be able to store and use the WSDL's in the config folder instead of the vendor folder (As composer overwrites these).
Part of my deployment is creating new VM instances and installing all dependencies, so the library gets downloaded after deployment