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\Crypt;
use Phalcon\Di\DiInterface;
use Zemit\Crypt;
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\Crypt
class ServiceProvider extends AbstractServiceProvider
{
protected $serviceName = 'crypt';
* {@inheritdoc}
* @param DiInterface $di
public function register(\Phalcon\Di\DiInterface $di): void
$di->setShared($this->getName(), function() use ($di) {
$di
This check looks for imports that have been defined, but are not used in the scope.
$crypt = new Crypt();
return $crypt;
});
}
This check looks for imports that have been defined, but are not used in the scope.