Skip to content

Commit

Permalink
fix: rename bundle namespace for flex compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Mar 31, 2024
1 parent f5c8575 commit 481188a
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"Rekalogika\\Rekapager\\Keyset\\": "packages/rekapager-keyset-pagination/src/",
"Rekalogika\\Rekapager\\Offset\\": "packages/rekapager-offset-pagination/src/",
"Rekalogika\\Rekapager\\Pagerfanta\\": "packages/rekapager-pagerfanta-adapter/src/",
"Rekalogika\\Rekapager\\Symfony\\": "packages/rekapager-bundle/src/"
"Rekalogika\\Rekapager\\Bundle\\": "packages/rekapager-bundle/src/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"autoload": {
"psr-4": {
"Rekalogika\\Rekapager\\Symfony\\": "src/"
"Rekalogika\\Rekapager\\Bundle\\": "src/"
}
},
"require": {
Expand Down
16 changes: 8 additions & 8 deletions packages/rekapager-bundle/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
* that was distributed with this source code.
*/

use Rekalogika\Rekapager\Bundle\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Bundle\Contracts\PageUrlGeneratorFactoryInterface;
use Rekalogika\Rekapager\Bundle\Implementation\SymfonyPageIdentifierEncoderLocator;
use Rekalogika\Rekapager\Bundle\Implementation\SymfonyPageUrlGeneratorFactory;
use Rekalogika\Rekapager\Bundle\PagerFactory;
use Rekalogika\Rekapager\Bundle\Twig\RekapagerExtension;
use Rekalogika\Rekapager\Bundle\Twig\RekapagerRuntime;
use Rekalogika\Rekapager\Bundle\Twig\TwigPagerRenderer;
use Rekalogika\Rekapager\Contracts\PageIdentifierEncoderLocatorInterface;
use Rekalogika\Rekapager\Keyset\PageIdentifierEncoder\SymfonySerializerKeysetPageIdentifierEncoder;
use Rekalogika\Rekapager\Offset\OffsetPageIdentifierEncoder;
use Rekalogika\Rekapager\Symfony\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Symfony\Contracts\PageUrlGeneratorFactoryInterface;
use Rekalogika\Rekapager\Symfony\Implementation\SymfonyPageIdentifierEncoderLocator;
use Rekalogika\Rekapager\Symfony\Implementation\SymfonyPageUrlGeneratorFactory;
use Rekalogika\Rekapager\Symfony\PagerFactory;
use Rekalogika\Rekapager\Symfony\Twig\RekapagerExtension;
use Rekalogika\Rekapager\Symfony\Twig\RekapagerRuntime;
use Rekalogika\Rekapager\Symfony\Twig\TwigPagerRenderer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Serializer\Encoder\DecoderInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Contracts;
namespace Rekalogika\Rekapager\Bundle\Contracts;

use Rekalogika\Rekapager\Contracts\PagerInterface;
use Symfony\Component\HttpFoundation\Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Contracts;
namespace Rekalogika\Rekapager\Bundle\Contracts;

use Rekalogika\Rekapager\Contracts\PageUrlGeneratorInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Contracts;
namespace Rekalogika\Rekapager\Bundle\Contracts;

use Rekalogika\Contracts\Rekapager\PageableInterface;
use Rekalogika\Rekapager\Contracts\PagerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\DependencyInjection;
namespace Rekalogika\Rekapager\Bundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\DependencyInjection;
namespace Rekalogika\Rekapager\Bundle\DependencyInjection;

use Rekalogika\Contracts\Rekapager\PageIdentifierEncoderInterface;
use Symfony\Component\Config\FileLocator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Implementation;
namespace Rekalogika\Rekapager\Bundle\Implementation;

use Psr\Container\ContainerInterface;
use Rekalogika\Contracts\Rekapager\Exception\LogicException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Implementation;
namespace Rekalogika\Rekapager\Bundle\Implementation;

use Rekalogika\Rekapager\Contracts\PageUrlGeneratorInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Implementation;
namespace Rekalogika\Rekapager\Bundle\Implementation;

use Rekalogika\Rekapager\Bundle\Contracts\PageUrlGeneratorFactoryInterface;
use Rekalogika\Rekapager\Contracts\PageUrlGeneratorInterface;
use Rekalogika\Rekapager\Symfony\Contracts\PageUrlGeneratorFactoryInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class SymfonyPageUrlGeneratorFactory implements PageUrlGeneratorFactoryInterface
Expand Down
6 changes: 3 additions & 3 deletions packages/rekapager-bundle/src/PagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony;
namespace Rekalogika\Rekapager\Bundle;

use Rekalogika\Contracts\Rekapager\PageableInterface;
use Rekalogika\Rekapager\Bundle\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Bundle\Contracts\PageUrlGeneratorFactoryInterface;
use Rekalogika\Rekapager\Contracts\PageIdentifierEncoderLocatorInterface;
use Rekalogika\Rekapager\Contracts\PagerInterface;
use Rekalogika\Rekapager\Pager\Pager;
use Rekalogika\Rekapager\Symfony\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Symfony\Contracts\PageUrlGeneratorFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/src/PagerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony;
namespace Rekalogika\Rekapager\Bundle;

use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony;
namespace Rekalogika\Rekapager\Bundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/src/Twig/RekapagerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Twig;
namespace Rekalogika\Rekapager\Bundle\Twig;

use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/src/Twig/RekapagerRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Twig;
namespace Rekalogika\Rekapager\Bundle\Twig;

use Rekalogika\Rekapager\Contracts\PagerInterface;
use Twig\Extension\RuntimeExtensionInterface;
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/src/Twig/TwigPagerRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* that was distributed with this source code.
*/

namespace Rekalogika\Rekapager\Symfony\Twig;
namespace Rekalogika\Rekapager\Bundle\Twig;

use Rekalogika\Rekapager\Contracts\PagerInterface;
use Twig\Environment;
Expand Down
4 changes: 2 additions & 2 deletions tests/src/App/Controller/DemoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Rekalogika\Rekapager\Tests\App\Controller;

use Rekalogika\Rekapager\Symfony\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Symfony\PagerOptions;
use Rekalogika\Rekapager\Bundle\Contracts\PagerFactoryInterface;
use Rekalogika\Rekapager\Bundle\PagerOptions;
use Rekalogika\Rekapager\Tests\App\Contracts\PageableGeneratorInterface;
use Rekalogika\Rekapager\Tests\App\Doctrine\SqlLogger;
use Rekalogika\Rekapager\Tests\App\Form\PagerParameters;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/App/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle;
use Rekalogika\Rekapager\Symfony\RekalogikaRekapagerBundle;
use Rekalogika\Rekapager\Bundle\RekalogikaRekapagerBundle;
use Rekalogika\Rekapager\Tests\App\DependencyInjection\DoctrineSqlLoggingPass;
use Symfony\Bundle\DebugBundle\DebugBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/IntegrationTests/KeysetPageIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

namespace Rekalogika\Rekapager\Tests\IntegrationTests;

use Rekalogika\Rekapager\Bundle\Implementation\SymfonyPageIdentifierEncoderLocator;
use Rekalogika\Rekapager\Contracts\PageIdentifierEncoderLocatorInterface;
use Rekalogika\Rekapager\Keyset\Contracts\BoundaryType;
use Rekalogika\Rekapager\Keyset\Contracts\KeysetPageIdentifier;
use Rekalogika\Rekapager\Keyset\PageIdentifierEncoder\SymfonySerializerKeysetPageIdentifierEncoder;
use Rekalogika\Rekapager\Symfony\Implementation\SymfonyPageIdentifierEncoderLocator;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

class KeysetPageIdentifierTest extends KernelTestCase
Expand Down

0 comments on commit 481188a

Please sign in to comment.