Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env php
- <?php
- /**
- * junk_ca_test.php
- *
- * PHP version 5.4
- *
- * @since 20150702 12:20
- * @author Michael Cummings <mgcummings@yahoo.com>
- */
- use Yapeal\Container\PimpleContainer;
- use Yapeal\Database\Eve\CharacterAffiliation;
- use Yapeal\Xml\EveApiXmlData;
- use Yapeal\Yapeal;
- require_once __DIR__ . '/bin/bootstrap.php';
- $dic = new PimpleContainer();
- $yapeal = new Yapeal($dic);
- $ids = '92168909,1188435724,196379789,126891489,587971565';
- $interval = 900;
- $data = new EveApiXmlData('CharacterAffiliation', 'eve', ['ids' => $ids]);
- $ca = new CharacterAffiliation(
- $dic['Yapeal.Database.Connection'],
- $dic['Yapeal.Log.Logger'],
- $dic['Yapeal.Database.CommonQueries']
- );
- $ca->oneShot(
- $data,
- $dic['Yapeal.Xml.Retriever'],
- $dic['Yapeal.Xml.Preserver'],
- $interval
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement