@@ -1266,16 +1266,8 @@ public function __construct($webRoot, \OC\Config $config) {
12661266 $ this ->registerAlias (IRichTextFormatter::class, \OC \RichObjectStrings \RichTextFormatter::class);
12671267
12681268 $ this ->registerAlias (ISignatureManager::class, SignatureManager::class);
1269- //
1270- // $this->registerAlias(ISnowflakeGenerator::class, SnowflakeGenerator::class);
1271- $ this ->registerService (ISnowflakeGenerator::class, function (ContainerInterface $ c ) {
1272- return new SnowflakeGenerator (
1273- $ c ->get (ITimeFactory::class),
1274- $ c ->get (IConfig::class),
1275- $ c ->get (ISequence::class),
1276- );
1277- });
12781269
1270+ $ this ->registerAlias (ISnowflakeGenerator::class, SnowflakeGenerator::class);
12791271 $ this ->registerService (ISequence::class, function (ContainerInterface $ c ): ISequence {
12801272 if (PHP_SAPI !== 'cli ' ) {
12811273 $ sequence = $ c ->get (APCuSequence::class);
@@ -1286,12 +1278,7 @@ public function __construct($webRoot, \OC\Config $config) {
12861278
12871279 return $ c ->get (FileSequence::class);
12881280 }, false );
1289-
1290-
1291- $ this ->registerService (ISnowflakeDecoder::class, function (ContainerInterface $ c ) {
1292- return new SnowflakeDecoder ();
1293- });
1294- // $this->registerAlias(ISnowflakeDecoder::class, SnowflakeDecoder::class);
1281+ $ this ->registerAlias (ISnowflakeDecoder::class, SnowflakeDecoder::class);
12951282
12961283 $ this ->connectDispatcher ();
12971284 }
0 commit comments