-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Add some documentation about resource proxies
- Loading branch information
1 parent
83d6239
commit 999244b
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ section of your composer.json**. | |
|
||
* Wilhelm Behncke - [email protected] | ||
* Martin Ficzel - [email protected] | ||
* ... and others | ||
|
||
*The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.* | ||
|
||
|
@@ -108,6 +109,15 @@ the commands.** | |
``` | ||
**Note:** Use this command on a regular basis, because your stash tends to grow **very** large. | ||
## Resource proxies | ||
While cloning the database to your local dev system is manageable even for larger projects, downloading all the assets is often not an option. | ||
For this case the package offers the concept of resource proxies. Once activated, only the resources that are actually used are downloaded just at the moment they are rendered. | ||
This is done by custom implementations of `WritableFileSystemStorage` and `ProxyAwareFileSystemSymlinkTarget` and works out of the box if you use this storage and target in you local development environment. | ||
If you use other local storages, for example a local S3 storage, you can easily build your own proxy aware versions implementing the interfaces `ProxyAwareStorageInterface` and `ProxyAwareTargetInterface`of this package. | ||
## Installation | ||
Sitegeist.Magicwand is available via packagist. Just add `"sitegeist/magicwand" : "~1.0"` to the require-dev section of the composer.json or run `composer require --dev sitegeist/magicwand`. We use semantic-versioning so every breaking change will increase the major-version number. | ||
|