This commit is contained in:
2020-09-10 19:26:42 +08:00
parent 398963606a
commit e5f9e4b078
14 changed files with 569 additions and 4 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace Queue;
use Exception;
use HttpServer\Server;
use Snowflake\Abstracts\Providers;
use Snowflake\Application;
/**
* Class QueueProviders
* @package Queue
*/
class QueueProviders extends Providers
{
/**
* @param Application $application
* @throws Exception
*/
public function onImport(Application $application)
{
/** @var Server $server */
$server = $application->get('server');
$server->addProcess('queue', Queue::class);
}
}