Download the PHP package umanit/content-publication-bundle without Composer
On this page you can find all versions of the php package umanit/content-publication-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download umanit/content-publication-bundle
More information about umanit/content-publication-bundle
Files in umanit/content-publication-bundle
Package content-publication-bundle
Short Description A simple yet efficient publishing bundle.
License MIT
Homepage https://github.com/umanit/content-publication-bundle
Informations about the package content-publication-bundle
Publication Bundle
A simple yet efficient publishing bundle.
Install
Register the bundle to your 'app/AppKernel.php'
Usage
Make your entity publishable
Implement the interface PublishableInterface
and use the trait PublishableTrait
.
This will add two fields to your entity, publishDate
and unpublishDate
.
All your content will then be displayed only when the current datetime is between those fields.
(Optional) Disable the filter for a specific firewall
Usually you'll need to administrate your contents.
For doing so, you can disable the filter by configuring the disabled_firewalls
option.
To follow this example, you'll need to add the admin
firewall to your `security.yml file.
Check out the Symfony documentation for more details.
All versions of content-publication-bundle with dependencies
symfony/framework-bundle Version ^5.4|^6.0
doctrine/doctrine-bundle Version ^2.7
doctrine/orm Version ^2.13