PHP Composer installiert Plugin nicht obwohl es in der composer.json steht

  • Ersteller Ersteller Furtano
  • Erstellt am Erstellt am
F

Furtano

Gast
Hallo,

benutze Symfony2 und Composer installiert Plugin nicht obwohl es in der composer.json steht.
Es geht um "ircmaxell/password-compat": "1.0.4".

composer.json
PHP:
{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/", "SymfonyStandard": "app/" }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.7.0",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.2",
        "twig/extensions": "~1.0",
        "symfony/assetic-bundle": "~2.3",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~3.0",
        "sensio/framework-extra-bundle": "~3.0",
        "incenteev/composer-parameter-handler": "~2.0",
        "doctrine/doctrine-fixtures-bundle": "2.2.*",
        "raulfraile/ladybug-bundle": "~1.0",
        "doctrine/couchdb": "@dev",
        "doctrine/couchdb-odm":  "dev-master",
        "doctrine/couchdb-odm-bundle": "dev-master",
        "ircmaxell/password-compat": "1.0.4"

    },
    "require-dev": {
        "sensio/generator-bundle": "~2.3"
    },
    "scripts": {
        "post-root-package-install": [
            "SymfonyStandard\\Composer::hookRootPackageInstall"
        ],
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "symfony-assets-install": "symlink",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.5-dev"
        }
    }
}

composer log

PHP:
root@bp01:/var/www/bp2# SYMFONY_ENV=prod php /var/www/bp2/composer.phar install --no-dev --optimize-autoloader -d /var/www/bp2/ -n
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  - Installing raulfraile/ladybug-installer (v1.0.1)
    Loading from cache

  - Installing doctrine/lexer (v1.0.1)
    Loading from cache

  - Installing doctrine/annotations (v1.2.4)
    Loading from cache

  - Installing twig/twig (v1.18.1)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing doctrine/inflector (v1.0.1)
    Loading from cache

  - Installing doctrine/collections (v1.3.0)
    Loading from cache

  - Installing doctrine/cache (v1.4.1)
    Loading from cache

  - Installing doctrine/common (v2.5.0)
    Loading from cache

  - Installing symfony/symfony (v2.7.0)
    Loading from cache

  - Installing doctrine/instantiator (1.0.4)
    Loading from cache

  - Installing doctrine/couchdb (dev-master 724e601)
    Cloning 724e6012354f1b3340fc60814dca1f3542a56f99

  - Installing doctrine/couchdb-odm (dev-master 6441c08)
    Cloning 6441c083110ab87fec84f78a48c9da4385953fcd

  - Installing doctrine/couchdb-odm-bundle (dev-master 0b65f20)
    Cloning 0b65f208a28341e320e823cbf0794494eb651b46

  - Installing doctrine/doctrine-cache-bundle (v1.0.1)
    Loading from cache

  - Installing jdorn/sql-formatter (v1.2.17)
    Loading from cache

  - Installing doctrine/dbal (v2.5.1)
    Loading from cache

    Skipped installation of bin bin/doctrine-dbal for package doctrine/dbal: name conflicts with an existing file
  - Installing doctrine/doctrine-bundle (v1.5.0)
    Loading from cache

  - Installing doctrine/data-fixtures (v1.1.1)
    Loading from cache

  - Installing doctrine/doctrine-fixtures-bundle (v2.2.0)
    Loading from cache

  - Installing doctrine/orm (v2.5.0)
    Loading from cache

    Skipped installation of bin bin/doctrine for package doctrine/orm: name conflicts with an existing file
    Skipped installation of bin bin/doctrine.php for package doctrine/orm: name conflicts with an existing file
  - Installing incenteev/composer-parameter-handler (v2.1.1)
    Loading from cache

  - Installing ptachoire/cssembed (v1.0.2)
    Loading from cache

  - Installing raulfraile/ladybug-plugin-symfony2 (v1.0.1)
    Loading from cache

  - Installing raulfraile/ladybug-theme-modern (v1.0.7)
    Loading from cache

  - Installing raulfraile/ladybug-plugin-extra (v1.0.1)
    Loading from cache

  - Installing raulfraile/ladybug (v1.0.11)
    Loading from cache

  - Installing raulfraile/ladybug-bundle (v1.0.6)
    Loading from cache

  - Installing sensio/distribution-bundle (v3.0.2)
    Loading from cache

  - Installing sensio/framework-extra-bundle (v3.0.9)
    Loading from cache

  - Installing kriswallsmith/assetic (v1.2.1)
    Loading from cache

  - Installing symfony/assetic-bundle (v2.6.1)
    Loading from cache

  - Installing monolog/monolog (1.13.1)
    Loading from cache

  - Installing symfony/monolog-bundle (v2.7.1)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.4.1)
    Loading from cache

  - Installing symfony/swiftmailer-bundle (v2.3.8)
    Loading from cache

  - Installing twig/extensions (v1.2.0)
    Loading from cache

Generating optimized autoload files
Warning: Ambiguous class resolution, "Chris\UserAdminBundle\Controller\AjaxGetController" was found in both "/var/www/bp2/src/Chris/UserAdminBundle/Controller/AjaxGetController.php" and "/var/www/bp2/src/Chris/DoodleBundle/Controller/AjaxGetController.php", the first will be used.
Creating the "app/config/parameters.yml" file
PHP Deprecated:  Calling the AppKernel::init() method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead. in /var/www/bp2/app/bootstrap.php.cache on line 2368
PHP Deprecated:  The Symfony\Component\HttpKernel\Kernel::init method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead. in /var/www/bp2/app/bootstrap.php.cache on line 2374
Clearing the cache for the prod environment with debug false
PHP Deprecated:  Calling the AppKernel::init() method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead. in /var/www/bp2/app/bootstrap.php.cache on line 2368
PHP Deprecated:  The Symfony\Component\HttpKernel\Kernel::init method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead. in /var/www/bp2/app/bootstrap.php.cache on line 2374
Trying to install assets as symbolic links.
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
The assets were installed using symbolic links.
Installing assets for Chris\TestBundle into web/bundles/christest
The assets were installed using symbolic links.
Installing assets for Chris\KfzBuchungBundle into web/bundles/kfzbuchung
The assets were installed using symbolic links.
 
korrekt, das löst das Problem.

Ein composer install installiert nur die dependencies mit genau den Versionen die im lockfile stehen, welches durch composer update aktualisiert wird. Deswegen auch die Warnung, dass dein lockfile outdated ist.
Die Idee dahinter ist, dass durch das lockfile immer garantiert ist, dass auch die dependencies deiner dependencies in der gleichen Version vorliegen.
 
Zurück
Oben