Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA2
    • Component/s: Documentation
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Roman S. Borschel added a comment -

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

        Show
        Roman S. Borschel added a comment - Downloading the symfony CLI code should not be necessary. If it is, that needs to be addressed.
        Hide
        Romain D. added a comment -

        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);

        Show
        Romain D. added a comment - 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);
        Hide
        Jonathan H. Wage added a comment -

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

        Show
        Jonathan H. Wage added a comment - This should be fine. We have the Symfony code there in lib/vendor/Symfony

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Romain D.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: