Download the PHP package dbp/relay-blob-connector-filesystem-bundle without Composer
On this page you can find all versions of the php package dbp/relay-blob-connector-filesystem-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dbp/relay-blob-connector-filesystem-bundle
More information about dbp/relay-blob-connector-filesystem-bundle
Files in dbp/relay-blob-connector-filesystem-bundle
Package relay-blob-connector-filesystem-bundle
Short Description Connector bundle for the relay-blob-bundle to store blob data on the filesystem
License AGPL-3.0-or-later
Informations about the package relay-blob-connector-filesystem-bundle
Relay-Blob-Connector-Filesystem Bundle
GitHub | Packagist | Changelog
This bundle is a connector bundle for the relay-blob-bundle to store blob data on the filesystem.
It implements the DatasystemProviderServiceInterface
of the blob bundle.
It can save files to a specific path, rename those files, remove those files, or return short-lived share-links.
Requirements
You need the DbpRelayBlob bundle installed to make this bundle working, see DbpRelayBlobBundle.
Bundle installation
You can install the bundle directly from packagist.org.
Integration into the Relay API Server
- Add the bundle to your
config/bundles.php
in front ofDbpRelayCoreBundle
:
If you were using the DBP API Server Template as template for your Symfony application, then this should have already been generated for you.
- Run
composer install
to clear caches
Configuration
The bundle has multiple configuration values that you can specify in your app, either by hard-coding it, or by referencing an environment variable.
For this create config/packages/dbp_relay_blob_connector_filesystem.yaml
in the app with the following
content:
For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html.
Development & Testing
- Install dependencies:
composer install
- Run tests:
composer test
- Run linters:
composer run lint
- Run cs-fixer:
composer run cs-fix
Bundle dependencies
Don't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle.
Scripts
Database migration
Run this script to migrate the database. Run this script after installation of the bundle and after every update to adapt the database to the new source code.
Functionality
/blob/filesystem/{identifier}
GET
Returns a binary file response of a sharelink id if the sharelink is valid and it exists
Error codes
relay:errorId | Status code | Description | relay:errorDetails | Example |
---|---|---|---|---|
blobConnectorFilesystem:no-identifier-set |
400 | No identifier set | message |
|
blobConnectorFilesystem:download-file |
400 | No file with this share id found | message |
|
blob-connector-filesystem:save-file-error |
400 | File could not be uploaded | message |
|
blob-connector-filesystem:generate-sharelink-error |
400 | Sharelink could not generated | message |
|
blob-connector-filesystem:fileshare-not-found |
403 | Fileshare was not found! | message |
|
blob-connector-filesystem:path-not-generated |
500 | Path could not be generated | message |
|
blob-connector-filesystem:sharelink-not-saved |
500 | ShareLink could not be saved! | message |
CronJobs
Cleanup Cronjob
Blob Connector Filesystem Database cleanup
: This cronjob is for cleanup purposes. It deletes all invalid sharelinks and starts every hour.
All versions of relay-blob-connector-filesystem-bundle with dependencies
ext-json Version *
api-platform/core Version ^2.7.11 || ^3.2
dbp/relay-blob-bundle Version ^0.1.22
dbp/relay-core-bundle Version ^v0.1.153
doctrine/dbal Version ^3.3
symfony/framework-bundle Version ^5.4.30 || ^6.4
doctrine/migrations Version ^3.5
doctrine/orm Version ^2.18
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/http-foundation Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/mime Version ^5.4 || ^6.4
symfony/string Version ^5.4 || ^6.4