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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/composer.lock
/phpcs.xml
/phpunit.xml
/tests/tmp
/var
/vendor
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"description": "Symfony MakerBundle for MongoDB ODM",
"keywords": ["mongodb", "maker", "odm", "dev"],
"type": "symfony-bundle",
"repositories": [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted that this and the "symfony/maker-bundle": "^1@dev" requirement below are required until your upstream PRs on symfony/maker-bundle are merged.

{ "type": "github", "url": "https://github.com/GromNaN/symfony-maker-bundle" }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created the branch 1.x on my fork to get all the required PR together. https://github.com/GromNaN/symfony-maker-bundle/tree/1.x

],
"require": {
"php": "^8.4",
"ext-mongodb": "^2.1",
"doctrine/mongodb-odm-bundle": "^5.5",
"symfony/maker-bundle": "^1.65",
"symfony/maker-bundle": "dev-develop",
Comment thread
GromNaN marked this conversation as resolved.
Outdated
"symfony/http-kernel": "^7.4|^8"
},
"require-dev": {
Expand Down
20 changes: 19 additions & 1 deletion config/makers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,29 @@
namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Doctrine\Bundle\MongoDBMakerBundle\Maker\MakeDocument;
use Doctrine\Bundle\MongoDBMakerBundle\MongoDB\DocumentClassGenerator;
use Doctrine\Bundle\MongoDBMakerBundle\MongoDB\MongoDBHelper;

return static function (ContainerConfigurator $container): void {
$services = $container->services();

$services->set('doctrine_mongodb_maker.mongodb_helper', MongoDBHelper::class)
->args([
service('doctrine_mongodb'),
]);

$services->set('doctrine_mongodb_maker.document_class_generator', DocumentClassGenerator::class)
->args([
service('maker.generator'),
service('doctrine_mongodb_maker.mongodb_helper'),
]);

$services->set('doctrine_mongodb_maker.maker.make_document', MakeDocument::class)
->args([])
->args([
service('maker.file_manager'),
service('doctrine_mongodb_maker.mongodb_helper'),
service('maker.generator'),
service('doctrine_mongodb_maker.document_class_generator'),
])
->tag('maker.command');
};
4 changes: 3 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

<file>config</file>
<file>src</file>
<file>tests</file>
<file>tests/TestKernel.php</file>
<file>tests/BundleTest.php</file>
<file>tests/Maker</file>

<rule ref="Doctrine" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint" />
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ parameters:
paths:
- src
- tests
excludePaths:
- tests/tmp

includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
Expand Down
Loading
Loading