Skip to content

generate:project fails because it doesn't know where doctrine is #10

@isleshocky77

Description

@isleshocky77

When trying to generate a project using LExpress/symfony1 it throws the following error

PHP Warning: require_once(/Doctrine/Core.php): failed to open stream: No such file or directory in /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/config/sfDoctrinePluginConfiguration.class.php on line 42

It appears that it doesn't know that doctrine is being placed in /vendor/lexpress/doctrine1/lib/Doctrine/ rather then in vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/

$ ./vendor/lexpress/symfony1/data/bin/symfony generate:project example
>> dir+      /srv/example/project_composer_test/lib
>> dir+      /srv/example/project_composer_test/lib/form
>> file+     /srv/example/project_composer_test/lib/form/BaseForm.class.php
>> dir+      /srv/example/project_composer_test/apps
>> dir+      /srv/example/project_composer_test/log
>> dir+      /srv/example/project_composer_test/data
>> dir+      /srv/example/project_composer_test/data/fixtures
>> file+     /srv/example/project_composer_test/data/fixtures/fixtures.yml
>> dir+      /srv/example/project_composer_test/web
>> dir+      /srv/example/project_composer_test/web/css
>> file+     /srv/example/project_composer_test/web/css/main.css
>> dir+      /srv/example/project_composer_test/web/js
>> file+     /srv/example/project_composer_test/web/.htaccess
>> file+     /srv/example/project_composer_test/web/robots.txt
>> dir+      /srv/example/project_composer_test/web/uploads
>> dir+      /srv/example/project_composer_test/web/uploads/assets
>> dir+      /srv/example/project_composer_test/web/images
>> dir+      /srv/example/project_composer_test/cache
>> file+     /srv/example/project_composer_test/symfony
>> dir+      /srv/example/project_composer_test/test
>> dir+      /srv/example/project_composer_test/test/bootstrap
>> file+     /srv/example/project_composer_test/test/bootstrap/functional.php
>> file+     /srv/example/project_composer_test/test/bootstrap/unit.php
>> dir+      /srv/example/project_composer_test/test/functional
>> dir+      /srv/example/project_composer_test/test/unit
>> dir+      /srv/example/project_composer_test/config
>> file+     /srv/example/project_composer_test/config/ProjectConfiguration.class.php
>> file+     /srv/example/project_composer_test/config/properties.ini
>> file+     /srv/example/project_composer_test/config/rsync_exclude.txt
>> tokens    /srv/example/project_composer_test/config/ProjectConfiguration.class.php
>> tokens    /srv/example/project_composer_test/config/properties.ini
>> tokens    /srv/example/project_composer_test/config/rsync_exclude.txt
>> tokens    /srv/example/project_composer_test/config/ProjectConfiguration.class.php
>> tokens    /srv/example/project_composer_test/config/properties.ini
>> tokens    /srv/example/project_composer_test/config/rsync_exclude.txt
>> tokens    /srv/example/project_composer_test/lib/form/BaseForm.class.php
>> file+     /srv/example/project_composer_test/config/databases.yml
>> dir+      /srv/example/project_composer_test/config/doctrine
>> file+     /srv/example/project_composer_test/config/doctrine/schema.yml
PHP Warning:  require_once(/Doctrine/Core.php): failed to open stream: No such file or directory in /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/config/sfDoctrinePluginConfiguration.class.php on line 42
PHP Stack trace:
PHP   1. {main}() /srv/example/project_composer_test/vendor/lexpress/symfony1/data/bin/symfony:0
PHP   2. include() /srv/example/project_composer_test/vendor/lexpress/symfony1/data/bin/symfony:37
PHP   3. sfSymfonyCommandApplication->run() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/command/cli.php:20
PHP   4. sfTask->runFromCLI() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/command/sfSymfonyCommandApplication.class.php:76
PHP   5. sfGenerateProjectTask->doRun() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfTask.class.php:97
PHP   6. sfGenerateProjectTask->execute() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/generator/sfGenerateProjectTask.class.php:30
PHP   7. include() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/generator/sfGenerateProjectTask.class.php:128
PHP   8. sfBaseTask->reloadTasks() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/config/installer.php:5
PHP   9. sfBaseTask->createConfiguration() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfBaseTask.class.php:363
PHP  10. sfProjectConfiguration->__construct() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfBaseTask.class.php:220
PHP  11. sfProjectConfiguration->loadPlugins() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfProjectConfiguration.class.php:62
PHP  12. sfPluginConfiguration->__construct() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfProjectConfiguration.class.php:91
PHP  13. sfDoctrinePluginConfiguration->initialize() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfPluginConfiguration.class.php:47
PHP Fatal error:  require_once(): Failed opening required '/Doctrine/Core.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/config/sfDoctrinePluginConfiguration.class.php on line 42
PHP Stack trace:
PHP   1. {main}() /srv/example/project_composer_test/vendor/lexpress/symfony1/data/bin/symfony:0
PHP   2. include() /srv/example/project_composer_test/vendor/lexpress/symfony1/data/bin/symfony:37
PHP   3. sfSymfonyCommandApplication->run() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/command/cli.php:20
PHP   4. sfTask->runFromCLI() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/command/sfSymfonyCommandApplication.class.php:76
PHP   5. sfGenerateProjectTask->doRun() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfTask.class.php:97
PHP   6. sfGenerateProjectTask->execute() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/generator/sfGenerateProjectTask.class.php:30
PHP   7. include() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/generator/sfGenerateProjectTask.class.php:128
PHP   8. sfBaseTask->reloadTasks() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/plugins/sfDoctrinePlugin/config/installer.php:5
PHP   9. sfBaseTask->createConfiguration() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfBaseTask.class.php:363
PHP  10. sfProjectConfiguration->__construct() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/task/sfBaseTask.class.php:220
PHP  11. sfProjectConfiguration->loadPlugins() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfProjectConfiguration.class.php:62
PHP  12. sfPluginConfiguration->__construct() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfProjectConfiguration.class.php:91
PHP  13. sfDoctrinePluginConfiguration->initialize() /srv/example/project_composer_test/vendor/lexpress/symfony1/lib/config/sfPluginConfiguration.class.php:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions