2017 © Pedro Peláez
 

symfony-bundle readable-path-bundle

Extends the sonata media bundle with a possibility for readable image paths.

image

kai-grassnick/readable-path-bundle

Extends the sonata media bundle with a possibility for readable image paths.

  • Monday, October 16, 2017
  • by KaiGrassnick
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Allow readable image (thumbnails) path

Add a thumbnail-filter which allows us to use the image name as a readable path, (*1)

To allow a new type, we have to overwrite the original FormatThumbnail function, (*2)

Requirements

  • Symfony
  • SonataAdmin

How to install

  1. Add path to parameters.yml sonata.media.thumbnail.format: "KaiGrassnick\ReadablePathBundle\Thumbnail\FormatThumbnail"
  2. Add new KaiGrassnick\ReadablePathBundle\KaiGrassnickReadablePathBundle() to AppKernel.php
  3. Done! Now we have a new thumbnail format

How to use

$provider = $this->get("sonata.media.provider.image");
$provider->generatePublicUrl($media, 'readable');

License

  • MIT

Credits

  • Kai Grassnick

The Versions

16/10 2017

dev-master

9999999-dev

Extends the sonata media bundle with a possibility for readable image paths.

  Sources   Download

MIT

The Requires

 

sonata media thumbnail path

16/10 2017

1.0.1

1.0.1.0

Extends the sonata media bundle with a possibility for readable image paths.

  Sources   Download

MIT

The Requires

 

sonata media thumbnail path

16/10 2017

1.0.0

1.0.0.0

Extends the sonata media bundle with a possibility for readable image paths.

  Sources   Download

MIT

The Requires