Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
the rest
  • Loading branch information
priyadi committed May 5, 2025
commit 1ef8092d96786693922079d3c1babba29fc236ff
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"psr/log": "^2 || ^3",
"rekalogika/doctrine-collections-decorator": "^2.0",
"rekalogika/reconstitutor": "^2.0.2",
"rekalogika/temporary-url-bundle": "^1.7",
"rekalogika/temporary-url-bundle": "^1.7.2",
"symfony/cache": "^6.2 || ^7.0",
"symfony/config": "^6.2 || ^7.0",
"symfony/console": "^6.2 || ^7.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/file-bundle/config/file-bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
//

$services
->set(DefaultFilesystemFactory::class);
->set(DefaultFilesystemFactory::class)
;

$services
->set('rekalogika.file.default_filesystem')
Expand All @@ -49,5 +50,6 @@
->args([
'$fileLocationResolver' => service(ClassBasedFileLocationResolverInterface::class),
])
->tag('console.command');
->tag('console.command')
;
};
9 changes: 6 additions & 3 deletions packages/file-bundle/config/file-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@

$services
->set(ImageResizer::class)
->tag('rekalogika.file.derivation.filter');
->tag('rekalogika.file.derivation.filter')
;

$services
->set('rekalogika.file.image.twig_extension')
->class(ImageTwigExtension::class)
->tag('twig.extension', [
'priority' => 1000000,
]);
])
;

$services
->set('rekalogika.file.image.twig_runtime')
Expand All @@ -40,5 +42,6 @@
])
->tag('twig.runtime', [
'priority' => 1000000,
]);
])
;
};
4 changes: 3 additions & 1 deletion packages/file-bundle/config/file-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();

$services->set(FileInterfaceResourceServer::class)
$services
->set('rekalogika.file.server.file_interface_resource_server')
->class(FileInterfaceResourceServer::class)
->tag('rekalogika.temporary_url.resource_server', [
'method' => 'respond',
])
Expand Down
22 changes: 15 additions & 7 deletions packages/file-bundle/config/file-zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,26 @@
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();

$services->set(FileZip::class)
$services
->set(FileZip::class)
->args([
service(ZipDirectory::class),
service('rekalogika.file.zip.zip_directory'),
service(TranslatorInterface::class),
]);
])
;

$services->set(ZipDirectory::class)
$services
->set('rekalogika.file.zip.zip_directory')
->class(ZipDirectory::class)
->args([
service(FileRepositoryInterface::class),
service(TranslatorInterface::class)->nullOnInvalid(),
]);
])
;

$services->set(DirectoryResourceServer::class)
$services
->set('rekalogika.file.zip.directory_resource_server')
->class(DirectoryResourceServer::class)
->args([
service(FileZip::class),
service(TranslatorInterface::class),
Expand All @@ -45,5 +52,6 @@
])
->tag('rekalogika.temporary_url.resource_transformer', [
'method' => 'transform',
]);
])
;
};
6 changes: 4 additions & 2 deletions packages/file-bundle/config/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
$services = $containerConfigurator->services();

$services
->set(FileFactory::class);
->set('rekalogika.file.factory')
->class(FileFactory::class)
;

$services
->set(FileRepositoryInterface::class)
->class(FileRepository::class)
->factory([
service(FileFactory::class),
service('rekalogika.file.factory'),
'getFileRepository',
])
->tag('kernel.reset', ['method' => 'reset'])
Expand Down
2 changes: 1 addition & 1 deletion packages/file-filepond/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"rekalogika/file-image": "^2.0",
"rekalogika/file-server": "^2.0",
"rekalogika/file-symfony-bridge": "^2.0",
"rekalogika/temporary-url-bundle": "^1.7",
"rekalogika/temporary-url-bundle": "^1.7.2",
"symfony/dependency-injection": "^6.2 || ^7.0",
"symfony/form": "^6.2 || ^7.0",
"symfony/http-foundation": "^6.2 || ^7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/file-server/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": "^8.2",
"rekalogika/file-contracts": "^2.0",
"rekalogika/file-symfony-bridge": "^2.0",
"rekalogika/temporary-url-bundle": "^1.7",
"rekalogika/temporary-url-bundle": "^1.7.2",
"symfony/http-foundation": "^6.2 || ^7.0"
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion packages/file-zip/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"psr/http-message": "^1.0 || ^2.0",
"rekalogika/file-contracts": "^2.0",
"rekalogika/file-metadata": "^2.0",
"rekalogika/temporary-url-bundle": "^1.7",
"rekalogika/temporary-url-bundle": "^1.7.2",
"maennchen/zipstream-php": "^3.1",
"symfony/http-foundation": "^6.2 || ^7.0",
"symfony/translation-contracts": "^3.0"
Expand Down
6 changes: 3 additions & 3 deletions tests/src/Tests/FileAssociation/ObjectManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ final class ObjectManagerTest extends KernelTestCase
protected function setUp(): void
{

$fileAssociationManager = static::getContainer()
$objectManager = static::getContainer()
->get('rekalogika.file.association.object_manager');

$this->assertInstanceOf(
ObjectManagerInterface::class,
$fileAssociationManager,
$objectManager,
);

$this->objectManager = $fileAssociationManager;
$this->objectManager = $objectManager;

$fileRepository = static::getContainer()
->get(FileRepositoryInterface::class);
Expand Down
Loading