PHP code example of umanit / content-publication-bundle
1. Go to this page and download the library: Download umanit/content-publication-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
umanit / content-publication-bundle example snippets
new Umanit\ContentPublicationBundle\UmanitContentPublicationBundle(),
namespace App\Entity\Content;
use Doctrine\ORM\Mapping as ORM;
use Umanit\ContentPublicationBundle\Doctrine\Model\PublishableInterface;
use Umanit\ContentPublicationBundle\Doctrine\Model\PublishableTrait;
#[ORM\Table(name: 'news')]
#[ORM\Entity]
class News implements PublishableInterface
{
use PublishableTrait;
}