PHP code example of webfactory / visibility-filter-bundle
1. Go to this page and download the library: Download webfactory/visibility-filter-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/ */
webfactory / visibility-filter-bundle example snippets
# src/bundles.php
return [
# ...
Webfactory\VisibilityFilterBundle\VisibilityFilterBundle::class => ['all' => true],
# ...
];
use Doctrine\ORM\Mapping as ORM;
use Webfactory\VisibilityFilterBundle\Annotation\VisibilityColumn;
/**
* @ORM\Entity()
*/
class EntityWithVisibilityColumn
{
// ...
/**
* @VisibilityColumn()
*
* @ORM\Column(type="string")
*
* @var string
*/
private $visibilityColumn;
// ...
}