本文整理汇总了PHP中Driver::run方法的典型用法代码示例。如果您正苦于以下问题:PHP Driver::run方法的具体用法?PHP Driver::run怎么用?PHP Driver::run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Driver
的用法示例。
在下文中一共展示了Driver::run方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testRegistry
function testRegistry()
{
$this->assertNull($this->loop->getState("foo"));
$this->loop->setState("foo", NAN);
$this->assertTrue(is_nan($this->loop->getState("foo")));
$this->loop->setState("foo", "1");
$this->assertNull($this->loop->getState("bar"));
$this->loop->setState("baz", -INF);
// running must not affect state
$this->loop->defer([$this->loop, "stop"]);
$this->loop->run();
$this->assertSame(-INF, $this->loop->getState("baz"));
$this->assertSame("1", $this->loop->getState("foo"));
}
示例2: __construct
public function __construct($driver = '')
{
$this->cache = Driver::run('Cache', $driver);
}
示例3: run
/**
* Alias for driver run
*/
public function run()
{
$this->clearState();
return $this->driver->run();
}
示例4: __construct
public function __construct($driver = '')
{
$this->compress = Driver::run('Compress', $driver);
}
示例5: __construct
public function __construct($driver = '')
{
$this->crypto = Driver::run('Encode', $driver);
}
示例6: __construct
public function __construct($driver = '')
{
$this->email = Driver::run('Email', $driver);
$this->driver = !empty($driver) ? $driver : Config::get('Email', 'driver');
$this->settings();
}