PHP code example of presta / sonata-saved-filters-bundle
1. Go to this page and download the library: Download presta/sonata-saved-filters-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/ */
presta / sonata-saved-filters-bundle example snippets
use Doctrine\ORM\Mapping as ORM;
use Presta\SonataSavedFiltersBundle\Entity\SavedFiltersOwnerInterface;
use Symfony\Component\Security\Core\User\UserInterface;
#[ORM\Entity]
class User implements UserInterface, SavedFiltersOwnerInterface
{
}
diff
# config/bundles.php
return [
+ Presta\SonataSavedFiltersBundle\PrestaSonataSavedFiltersBundle::class => ['all' => true],
];