Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in
Logo1

hfpp2012 / vbot

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • vbot
  • src
  • Foundation
  • ServiceProviders
  • ServerServiceProvider.php
  • HanSon's avatar
    修改命名空间 · df696b4f
    HanSon committed Jan 16, 2017
    df696b4f
ServerServiceProvider.php 385 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

namespace Hanson\Vbot\Foundation\ServiceProviders;


use Hanson\Vbot\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']);
        };
    }
}