ServerServiceProvider.php
387 Bytes
<?php
namespace Hanson\Robot\Foundation\ServiceProviders;
use Hanson\Robot\Core\Server;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
class ServerServiceProvider implements ServiceProviderInterface
{
public function register(Container $pimple)
{
$pimple['server'] = function ($pimple) {
return server($pimple['config']);
};
}
}