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\Attribute\VisibilityColumn;
#[ORM\Entity()]
class EntityWithVisibilityColumn
{
// ...
#[ORM\Column(type: "string")]
#[VisibilityColumn]
private string $visibilityColumn;
// ...
}