PHP Class Newscoop\Services\GarbageCollectionService

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager

Public Methods

Method Description
__construct ( EntityManager $em )
run ( string $days ) : void Run users garbage collection

Private Methods

Method Description
gcTokens ( ) : void Remove obsolete tokens
gcUsers ( string $days ) : void Remove obsolete users

Method Details

__construct() public method

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

run() public method

Run users garbage collection
public run ( string $days ) : void
$days string
return void

Property Details

$em protected property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager