for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Hello;
use ByTIC\Hello\Oauth\Routes\RouteRegistrar;
use ByTIC\Hello\Oauth\ServiceProvider\Traits\AuthorizationServerTrait;
use ByTIC\Hello\Oauth\ServiceProvider\Traits\RepositoriesTrait;
use League\OAuth2\Server\AuthorizationServer;
use Nip\Container\ServiceProviders\Providers\AbstractSignatureServiceProvider;
use Nip\Container\ServiceProviders\Providers\BootableServiceProviderInterface;
/**
* Class HelloServiceProvider
* @package ByTIC\Auth
*/
class HelloServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface
{
use RepositoriesTrait;
use AuthorizationServerTrait;
* @inheritdoc
public function register()
$this->registerRepositories();
$this->registerAuthorizationServer();
}
public function provides()
$return = ['hello.server', AuthorizationServer::class];
$return = $this->appendRepositoriesToProvide($return);
$return = $this->appendCryptKeysToProvide($return);
return $return;
* @inheritDoc
public function boot()
$router = $this->getContainer()->get('router');
(new RouteRegistrar($router))->all();