Comments (10)
ok!
from cakephp-file-storage.
Let me know if I'm missing something, first time I set this up for a cakephp plugin 7f33e2a
from cakephp-file-storage.
@burzum thank you very much, really nice of you.
I loaded it with the following app/composer.json
in my project and the update was completed
{
"config": {
"vendor-dir": "Vendor"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/burzum/FileStorage.git"
}
],
"require": {
"burzum/FileStorage": "dev-develop"
}
}
Note that doing so the Gaufrette library is in app/Vendor/knplabs/gaufrette
this means adding in app/Config/bootstrap.php
the following lines
Configure::write(
'FileStorage.GaufretteLib',
APP . 'Vendor' . DS . 'knplabs' . DS . 'gaufrette' . DS . 'src' . DS
);
from cakephp-file-storage.
First problem: with the app/composer.json
posted in my previous (above) comment, the plugin is created in Plugin/Filestorage
(with lower case s) instead of Plugin/FileStorage
(with upper case s).
As a comparison I am using also https://github.com/cakephp/debug_kit and this is correctly created in Plugin/DebugKit
.
So I wonder if:
- there is a solution (not found it yet) in the json syntax for this, allowing to change the name of the root folder of the plugin
- or the name of the Git repository must be changed
from cakephp-file-storage.
This is an issue of the composer CakePHP installer -> https://github.com/composer/installers/blob/master/src/Composer/Installers/CakePHPInstaller.php
It does not handle CamelCasedWords correctly.
I've fixed it https://github.com/burzum/installers/commit/87e0ea2e85b47a90c4cba1556a8b76f199e120d8 and created a pull request composer/installers#89
As a workaround please try this:
"extra": {
"installer-paths": {
"Plugin/FileStorage": ["vendor/package"]
}
}
See http://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md
from cakephp-file-storage.
Thank you, running composer update
, due to your accepted pull request, now installs the plugin with the correct name.
If you agree, these could be the possible next steps:
- Adding an
app/composer.json
to https://github.com/cakedc/imagine - Having this dependency suggested (not required) in this
app/composer.json
from cakephp-file-storage.
As a first step, I proposed this pull request https://github.com/mcallisto/Imagine/commit/5d9f732c3fadad049a113a0a8ffab7bac5476d01
from cakephp-file-storage.
Merged it.
from cakephp-file-storage.
Sorry, it contained a typo, my mistake, see https://github.com/mcallisto/Imagine/commit/f78c08988bd1bfa2dfdda86d5a0e86e54b8d208c
from cakephp-file-storage.
Thanks for the PR!
from cakephp-file-storage.
Related Issues (20)
- No versions of jpeg files HOT 4
- Keep a Change Log HOT 2
- Can't save file when creating related model HOT 2
- Upgrading from v1 to v2 HOT 7
- Tag current 2.0 version with next semver tag HOT 1
- How can one add to the list of supported adapter classes? HOT 5
- No image manipulation or correct url paths being returned HOT 2
- updating docs HOT 3
- Todo: Add migration guide from Cake 3 to 4 HOT 2
- updating docs
- Class could be found HOT 4
- Followed the guidelines in documentations server complaints 'Burzum\FileStorage\Event\LocalFileStorageListener' not found HOT 3
- Created a script to upload files to S3 - files uploaded but script throws error The listener `Burzum\FileStorage\Storage\Listener\LocalListener` doesn't allow the `\Gaufrette\Adapter\AwsS3` adapter class! Probably because it can't work with it HOT 4
- cakephp/cakephp 4.0.x dependency issue HOT 7
- Version 4.0 (complete rewrite) HOT 3
- Antipattern showcase
- Link in docs is broken
- Issues with upload for 1:1 HOT 1
- Issues installing via composer HOT 8
- Looking for a new maintainer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-file-storage.