コード例 #1
0
<?php

// NotifyTerritoryRun.php
require __DIR__ . '/../../../../vendor/autoload.php';
require_once __DIR__ . '/../../../../app/AppKernel.php';
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
$application->add(new \KingdomHall\ServiceBundle\Command\NotifyTerritoryCommand());
$input = new \Symfony\Component\Console\Input\StringInput('k:t:n');
$application->run($input);
コード例 #2
0
ファイル: CronRun.php プロジェクト: Leonhart25/JWKingdomHall
#!/usr/bin/env php
<?php 
// CronRun.php
require __DIR__ . '/../../../../vendor/autoload.php';
require_once __DIR__ . '/../../../../app/AppKernel.php';
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
$application->add(new \KingdomHall\TaskBundle\Command\CronCommand());
$input = new \Symfony\Component\Console\Input\StringInput('k:c:r');
$application->run($input);