Uecode\Bundle\QPushBundle\Provider\FileProvider::cleanUp PHP Méthode

cleanUp() public méthode

public cleanUp ( )
    public function cleanUp()
    {
        $finder = new Finder();
        $finder->files()->in($this->queuePath)->ignoreDotFiles(true)->ignoreUnreadableDirs(true)->ignoreVCS(true)->depth('< 2')->name('*.json');
        $finder->date(sprintf('< %d seconds ago', $this->options['message_expiration']));
        /** @var SplFileInfo $file */
        foreach ($finder as $file) {
            @unlink($file->getRealPath());
        }
    }