Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EasyPagination] Flex compatibility for bundle to be installed auto #506

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion packages/EasyPagination/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"autoload": {
"psr-4": {
"EonX\\EasyPagination\\": "src"
"EonX\\EasyPagination\\": "src",
"EonX\\EasyPagination\\Bridge\\Symfony\\": "src/Bridge/Symfony"
}
},
"autoload-dev": {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace EonX\EasyPagination\Bridge\Symfony;

use EonX\EasyPagination\Bridge\Symfony\DependencyInjection\EasyPaginationExtension;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

final class EasyPaginationSymfonyBundle extends Bundle
{
public function getContainerExtension(): ExtensionInterface
{
return new EasyPaginationExtension();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace EonX\EasyPagination\Tests\Bridge\Symfony\Stubs;

use EonX\EasyPagination\Bridge\Symfony\EasyPaginationBundle;
use EonX\EasyPagination\Bridge\Symfony\EasyPaginationSymfonyBundle;
use EonX\EasyPagination\Interfaces\StartSizeDataResolverInterface;
use EonX\EasyPsr7Factory\Bridge\Symfony\EasyPsr7FactoryBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function process(ContainerBuilder $container): void
*/
public function registerBundles(): iterable
{
yield new EasyPaginationBundle();
yield new EasyPaginationSymfonyBundle();
yield new EasyPsr7FactoryBundle();
}

Expand Down