DDC-606: CLI documentation is out of date #747

Closed
opened 2026-01-22 12:49:01 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (May 21, 2010).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user artefact2:

The documentation never mentions that you should download symfony's source code on github and tweak the bin/doctrine.php file if you want to get it working.

Originally created by @doctrinebot on GitHub (May 21, 2010). Originally assigned to: @jwage on GitHub. Jira issue originally created by user artefact2: The documentation never mentions that you should download symfony's source code on github and tweak the bin/doctrine.php file if you want to get it working.
admin added the Improvement label 2026-01-22 12:49:01 +01:00
admin closed this issue 2026-01-22 12:49:02 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 21, 2010):

Comment created by romanb:

Downloading the symfony CLI code should not be necessary. If it is, that needs to be addressed.

@doctrinebot commented on GitHub (May 21, 2010): Comment created by romanb: Downloading the symfony CLI code should not be necessary. If it is, that needs to be addressed.
Author
Owner

@doctrinebot commented on GitHub (May 21, 2010):

Comment created by artefact2:

Well it was necessary for me. This is an extract of bin/doctrine.php :

$classLoader = new \Doctrine\Common\ClassLoader('Symfony', DIR . '/../lib/vendor');
$classLoader->register();

$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';

$helperSet = null;
if (file_exists($configFile)) {
if ( ! is_readable($configFile)) {
trigger_error(
'Configuration file [' . $configFile . '] does not have read permission.', E_ERROR
);
}

require $configFile;

foreach ($GLOBALS as $helperSetCandidate) {
    if ($helperSetCandidate instanceof \Symfony\Components\Console\Helper\HelperSet) {
        $helperSet = $helperSetCandidate;
        break;
    }
}

}

$helperSet = ($helperSet) ?: new \Symfony\Components\Console\Helper\HelperSet();

$cli = new \Symfony\Components\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);

@doctrinebot commented on GitHub (May 21, 2010): Comment created by artefact2: Well it was necessary for me. This is an extract of bin/doctrine.php : $classLoader = new \Doctrine\Common\ClassLoader('Symfony', __DIR__ . '/../lib/vendor'); $classLoader->register(); $configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; $helperSet = null; if (file_exists($configFile)) { if ( ! is_readable($configFile)) { trigger_error( 'Configuration file [' . $configFile . '] does not have read permission.', E_ERROR ); } ``` require $configFile; foreach ($GLOBALS as $helperSetCandidate) { if ($helperSetCandidate instanceof \Symfony\Components\Console\Helper\HelperSet) { $helperSet = $helperSetCandidate; break; } } ``` } $helperSet = ($helperSet) ?: new \Symfony\Components\Console\Helper\HelperSet(); $cli = new \Symfony\Components\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);
Author
Owner

@doctrinebot commented on GitHub (May 25, 2010):

Comment created by @jwage:

This should be fine. We have the Symfony code there in lib/vendor/Symfony

@doctrinebot commented on GitHub (May 25, 2010): Comment created by @jwage: This should be fine. We have the Symfony code there in lib/vendor/Symfony
Author
Owner

@doctrinebot commented on GitHub (May 25, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 25, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#747