Skip to content

Commit

Permalink
Remove the doctrine binary (#9662)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Apr 22, 2022
1 parent 801a750 commit aebd3f3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 143 deletions.
10 changes: 10 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Upgrade to 3.0

## BC Break: Removed the `doctrine` binary.

The documentation explains how the console tools can be bootstrapped for
standalone usage:

https://www.doctrine-project.org/projects/doctrine-orm/en/stable/reference/tools.html

The method `ConsoleRunner::printCliConfigTemplate()` has been removed as well
because it was only useful in the context of the `doctrine` binary.

## BC Break: Removed `EntityManagerHelper` and related logic

All console commands require a `$entityManagerProvider` to be passed via the
Expand Down
4 changes: 0 additions & 4 deletions bin/doctrine

This file was deleted.

43 changes: 0 additions & 43 deletions bin/doctrine-pear.php

This file was deleted.

9 changes: 0 additions & 9 deletions bin/doctrine.bat

This file was deleted.

62 changes: 0 additions & 62 deletions bin/doctrine.php

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"Doctrine\\Performance\\": "tests/Doctrine/Performance"
}
},
"bin": ["bin/doctrine"],
"archive": {
"exclude": ["!vendor", "tests", "*phpunit.xml", "build.xml", "build.properties", "composer.phar", "vendor/satooshi", "lib/vendor", "*.swp"]
}
Expand Down
24 changes: 0 additions & 24 deletions lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,4 @@ public static function addCommands(Application $cli, EntityManagerProvider $enti
]
);
}

/**
* @deprecated This method will be removed in ORM 3.0 without replacement.
*/
public static function printCliConfigTemplate(): void
{
echo <<<'HELP'
You are missing a "cli-config.php" or "config/cli-config.php" file in your
project, which is required to get the Doctrine Console working. You can use the
following sample as a template:
<?php
use Doctrine\ORM\Tools\Console\ConsoleRunner;
// replace with file to your own project bootstrap
require_once 'bootstrap.php';
// replace with mechanism to retrieve EntityManager in your app
$entityManager = GetEntityManager();
return ConsoleRunner::createHelperSet($entityManager);

HELP;
}
}

0 comments on commit aebd3f3

Please sign in to comment.