for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Zemit Framework.
*
* (c) Zemit Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Zemit\Provider\Request;
use Phalcon\Di\DiInterface;
use Zemit\Http\Request;
use Zemit\Provider\AbstractServiceProvider;
* Class ServiceProvider
* @author Julien Turbide <[email protected]>
* @copyright Zemit Team <[email protected]>
* @since 1.0
* @version 1.0
* @package Zemit\Provider\Request
class ServiceProvider extends AbstractServiceProvider
{
* The Service name.
* @var string
protected $serviceName = 'request';
* {@inheritdoc}
* @return void
public function register(DiInterface $di): void
$di->setShared($this->getName(), function() use ($di) {
$request = new Request();
$request->setDI($di);
return $request;
});
}