PHP code example of geonative / garbage-collector
1. Go to this page and download the library: Download geonative/garbage-collector 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/ */
geonative / garbage-collector example snippets
yaml
# config/services.yaml
services:
_instanceof:
GeoNative\GarbageCollector\PrunableRepositoryInterface:
tags: [!php/const GeoNative\GarbageCollector\Services\GarbageCollector::PRUNABLE_REPOSITORY]
bash
php bin/console doctrine:schema:update --dump-sql --force
bash
php bin/console gc:entities:prune
bash
php bin/console gc:entities:prune --loop=5
bash
php bin/console gc:entities:prune --lock