Download the PHP package whitedigital-eu/storage-item-resource without Composer
On this page you can find all versions of the php package whitedigital-eu/storage-item-resource. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whitedigital-eu/storage-item-resource
More information about whitedigital-eu/storage-item-resource
Files in whitedigital-eu/storage-item-resource
Package storage-item-resource
Short Description Storage Item resource
License MIT
Informations about the package storage-item-resource
Storage item resource
System Requirements
PHP 8.1+
Symfony 6.2+
Installation
The recommended way to install is via Composer:
With the help of vich/uploader-bundle
this package enables file upload when used with api platform.
After this, you need to update your database schema to use StorageItem entity.
If using migrations:
If by schema update:
This will enable new StorageItem
api resource with /api/storage_items
iri. If you want different iri, see
https://github.com/whitedigital-eu/entity-resource-mapper#extended-api-resource how to override it.
Overriding default api resource (and therefore api endpoints)
By default, StorageItem resource is based on StorageItemResource
If you wish not to use this resource and not expose the api endpoints it provides, just set a custom api resource path
with a configuration value. If you set it as null
, api platform will not register api resource located within this
package.
After overriding default api resource, do not forget to update ClassMapperConfigurator configuration that is used for
resource <-> entity mapping in whitedigital-eu/entity-resource-mapper-bundle
All versions of storage-item-resource with dependencies
ext-exif Version *
api-platform/core Version ^3
doctrine/annotations Version *
doctrine/doctrine-bundle Version *
doctrine/orm Version *
doctrine/persistence Version *
symfony/config Version *
symfony/framework-bundle Version *
symfony/http-foundation Version *
symfony/http-kernel Version *
symfony/property-info Version *
symfony/security-core Version *
symfony/serializer Version *
symfony/translation Version *
symfony/validator Version *
vich/uploader-bundle Version *
whitedigital-eu/entity-resource-mapper-bundle Version *