src/ScContent/Controller/Back/GarbageController.php
public function collectAction()
    {
        // @todo json
        $service = $this->getGarbageCollector();
        if ($service->collect()) {
            return $this->redirect()->toRoute('sc-admin/content-manager');
        }
        return $this->redirect()
            ->toRoute(
                'sc-admin/file/delete',
                ['random' => Stdlib::randomKey(6)]
            )
            ->setStatusCode(303);
    }
public function collectAction()
    {
        // @todo json
        $service = $this->getGarbageCollector();
        if ($service->collect()) {
            return $this->redirect()->toRoute('sc-admin/content-manager');
        }
        return $this->redirect()
            ->toRoute(
                'sc-admin/file/delete',
                ['random' => Stdlib::randomKey(6)]
            )
            ->setStatusCode(303);
    }
public function collectAction ( ) { // @todo json $ service = $ this -> getGarbageCollector ( ) ; if ( $ service -> collect ( ) ) { return $ this -> redirect ( ) -> toRoute ( 'sc-admin/content-manager' ) ; } return $ this -> redirect ( ) -> toRoute ( 'sc-admin/file/delete' , [ 'random' => Stdlib :: randomKey ( 6 ) ] ) -> setStatusCode ( 303 ) ; }
Collects garbage - removes files from the file system.

@return \Zend\Stdlib\ResponseInterface
Collects garbage - removes files from the file system .