minkphp / MinkBundle

Mink library integration bundle for Symfony2
MIT License
60 stars 18 forks source link

Cannot update vendors #26

Closed coviex closed 12 years ago

coviex commented 12 years ago

Hi,

When I do this:

php ./bin/vendors install

I get this:

> Installing/Updating MinkBundle
788e4a170ab037bf810a26d2b25bfdb7b496df66
HEAD is now at 788e4a1 depend on symfony/framework-bundle instead of entire symfony/symfony                             
  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]          
  The service "behat.mink" has a dependency on a non-existent service "test.client".  
  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]          
  The service "behat.mink" has a dependency on a non-existent service "test.client".  

Here is my deps:

[symfony] git=http://github.com/symfony/symfony.git version=v2.0.11 [twig] git=http://github.com/fabpot/Twig.git version=v1.6.0 [monolog] git=http://github.com/Seldaek/monolog.git version=1.0.2 [doctrine-common] git=http://github.com/doctrine/common.git version=2.1.4 [doctrine-dbal] git=http://github.com/doctrine/dbal.git version=2.1.6 [doctrine] git=http://github.com/doctrine/doctrine2.git version=2.1.6 [swiftmailer] git=http://github.com/swiftmailer/swiftmailer.git version=v4.1.5 [assetic] git=http://github.com/kriswallsmith/assetic.git version=v1.0.2 [twig-extensions] git=http://github.com/fabpot/Twig-extensions.git [metadata] git=http://github.com/schmittjoh/metadata.git version=1.0.0 [SensioFrameworkExtraBundle] git=http://github.com/sensio/SensioFrameworkExtraBundle.git target=/bundles/Sensio/Bundle/FrameworkExtraBundle version=origin/2.0 [JMSSecurityExtraBundle] git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git target=/bundles/JMS/SecurityExtraBundle version=origin/1.0.x [SensioDistributionBundle] git=http://github.com/sensio/SensioDistributionBundle.git target=/bundles/Sensio/Bundle/DistributionBundle version=origin/2.0 [SensioGeneratorBundle] git=http://github.com/sensio/SensioGeneratorBundle.git target=/bundles/Sensio/Bundle/GeneratorBundle version=origin/2.0 [AsseticBundle] git=http://github.com/symfony/AsseticBundle.git target=/bundles/Symfony/Bundle/AsseticBundle version=v1.0.1 [gherkin] git=https://github.com/Behat/Gherkin.git target=/behat/gherkin [behat] git=https://github.com/Behat/Behat.git target=/behat/behat [BehatBundle] git=https://github.com/Behat/BehatBundle.git target=/bundles/Behat/BehatBundle [mink] git=https://github.com/Behat/Mink.git target=/behat/mink [MinkBundle] git=https://github.com/Behat/MinkBundle.git target=/bundles/Behat/MinkBundle

And config_test.yml:

imports:
    - { resource: config_dev.yml }

framework:
    test: ~
    session:
        storage_id: session.storage.filesystem

web_profiler:
    toolbar: false
    intercept_redirects: false

swiftmailer:
    disable_delivery: true

mink:
    base_url:   http://localhost/app_test.php

Thanks

everzet commented 12 years ago

It has nothing to do with vendors. Just configure MinkBundle correctly. Read the note at the end of this section: http://mink.behat.org/bundle/index.html#bundle-configuration

coviex commented 12 years ago

I get this error on step 4 when I follow http://mink.behat.org/bundle/index.html#bundle-installation-setup. I don't even try to use the bundle just update vendors. File is config_test.yml and intention is to use default client so no configuration seems to be needed. Could you please elaborate because I don't see any problems with configuration.

stof commented 12 years ago

Given that the vendors file calls the console in dev environment, the only way to get an error about Mink there is to register MinkBundle for the dev environment too. The doc only registers it for the test environment as it depends on the Sf2 test client. So you are not following the doc.

coviex commented 12 years ago

"vendors file calls the console in dev environment" didn't know that. thanks

stof commented 12 years ago

well, the console runs in dev by default if you don't pass the environment explicitly