Skip to content

Commit

Permalink
add name space
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu committed Mar 27, 2024
1 parent e99d78e commit 6bb3d3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
"require-dev": {
"phpunit/phpunit": "^11",
"squizlabs/php_codesniffer": "^3"
},
"autoload": {
"psr-4": {
"Ariga\\": "src/"
}
}
}
3 changes: 3 additions & 0 deletions src/AtlasDoctrineBundle.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php

namespace Ariga;

require_once "Command.php";

use AtlasCommand;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Symfony\Component\Console\Application;
Expand Down
1 change: 0 additions & 1 deletion src/LoadEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\MariaDBPlatform;
use Doctrine\ORM\Mapping\NamingStrategy;
use Doctrine\ORM\ORMSetup;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\DBAL\Schema\PostgreSQLSchemaManager;
Expand Down
6 changes: 2 additions & 4 deletions tests/BundleTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

require "src/AtlasDoctrineBundle.php";

use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\DBAL\DriverManager;
use Doctrine\ORM\EntityManager;
Expand All @@ -16,7 +14,7 @@ class BundleTest extends TestCase
public function testRegisterCommandsNoConfig(): void
{
$container = new ContainerBuilder();
$bundle = new AtlasDoctrineBundle();
$bundle = new Ariga\AtlasDoctrineBundle();
$bundle->setContainer($container);
$application = new Application();
$bundle->registerCommands($application);
Expand Down Expand Up @@ -53,7 +51,7 @@ public function testRegisterCommandsWithConfig(): void
$registry = new Registry($container, [], ['default' => 'doctrine.orm.default_entity_manager'], 'default', 'default');

$container->set('doctrine', $registry);
$bundle = new AtlasDoctrineBundle();
$bundle = new Ariga\AtlasDoctrineBundle();
$bundle->setContainer($container);
$application = new Application();
$bundle->registerCommands($application);
Expand Down

0 comments on commit 6bb3d3b

Please sign in to comment.