for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jellyfish\UuidRamsey;
use Jellyfish\Uuid\UuidConstants;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Ramsey\Uuid\UuidFactory;
class UuidRamseyServiceProvider implements ServiceProviderInterface
{
/**
* @param \Pimple\Container $container
*
* @return void
*/
public function register(Container $container): void
$this->registerUuidGenerator($container);
}
* @return \Jellyfish\UuidRamsey\UuidRamseyServiceProvider
protected function registerUuidGenerator(Container $container): UuidRamseyServiceProvider
$container->offsetSet(UuidConstants::CONTAINER_KEY_UUID_GENERATOR, static function () {
return new UuidGenerator(new UuidFactory());
});
return $this;