PHP Class Bolt\Events\CronEvent

Author: Gawain Lynch ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Datei anzeigen Open project: bolt/bolt

Public Properties

Property Type Description
$output Symfony\Component\Console\Output\OutputInterface

Public Methods

Method Description
__construct ( Silex\Application $app, Symfony\Component\Console\Output\OutputInterface $output = null ) Constructor.
doRunScheduledJobs ( Symfony\Component\EventDispatcher\Event $event, string $eventName ) Process jobs.

Private Methods

Method Description
cronDaily ( ) Daily jobs.
cronHourly ( ) Hourly jobs.
cronMonthly ( ) Monthly jobs.
cronWeekly ( ) Weekly jobs.
cronYearly ( ) Yearly jobs.
notify ( string $msg ) If we're passed an OutputInterface, we're called from Nut and can notify the end user.

Method Details

__construct() public method

Constructor.
public __construct ( Silex\Application $app, Symfony\Component\Console\Output\OutputInterface $output = null )
$app Silex\Application
$output Symfony\Component\Console\Output\OutputInterface

doRunScheduledJobs() public method

Process jobs.
public doRunScheduledJobs ( Symfony\Component\EventDispatcher\Event $event, string $eventName )
$event Symfony\Component\EventDispatcher\Event
$eventName string

Property Details

$output public_oe property

public OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface