IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

 PHP Discussion :

Installation avec composer [4.x]


Sujet :

PHP

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut Installation avec composer
    Lorsque je lance
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    composer require sensio/framework-extra-bundle
    j'obtiens ces erreurs:
    You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
    Using version ^5.4 for sensio/framework-extra-bundle
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    PHP Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:535
    Stack trace:
    #0 phar:///usr/bin/composer/src/Composer/DependencyResolver/Pool.php(204): class@anonymous->whatProvides(Object(Composer\DependencyResolver\Pool), 'symfony/web-ser...', false)
    #1 phar:///usr/bin/composer/src/Composer/DependencyResolver/Pool.php(193): Composer\DependencyResolver\Pool->computeWhatProvides('symfony/web-ser...', Object(Composer\Semver\Constraint\EmptyConstraint), true, false)
    #2 phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code(561): Composer\DependencyResolver\Pool->whatProvides('symfony/web-ser...', Object(Composer\Semver\Constraint\EmptyConstraint), true)
    #3 /srv/http/show-my-pictures/vendor/symfony/flex/src/ParallelDownloader.php(278): Symfony\Flex\Flex_composer_tmp0->Symfony\Flex\{closure}('symfony/web-ser...', Object(Composer\Semver\Constraint\EmptyConstraint))
    #4 /srv/http/show-my in phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code on line 535

    Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code on line 535

    Error: Maximum function nesting level of '256' reached, aborting! in phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code on line 535

    Call Stack:
    0.0002 394848 1. {main}() /usr/bin/composer:0
    0.0060 640192 2. require('phar:///usr/bin/composer/bin/composer') /usr/bin/composer:24
    0.0121 1355704 3. Composer\Console\Application->run() phar:///usr/bin/composer/bin/composer:61
    0.0149 1678952 4. Composer\Console\Application->run() phar:///usr/bin/composer/src/Composer/Console/Application.php:106
    0.0200 2253184 5. Composer\Console\Application->doRun() phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
    1.9999 10339184 6. Composer\Console\Application->doRun() phar:///usr/bin/composer/src/Composer/Console/Application.php:267
    2.0000 10339184 7. Composer\Console\Application->doRunCommand() phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
    2.0000 10339184 8. Symfony\Flex\Command\RequireCommand->run() phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
    2.0007 10365336 9. Symfony\Flex\Command\RequireCommand->execute() phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
    2.6153 160987896 10. Symfony\Flex\Command\RequireCommand->execute() /srv/http/show-my-pictures/vendor/symfony/flex/src/Command/RequireCommand.php:68
    2.6549 161157584 11. Symfony\Flex\Command\RequireCommand->doUpdate() phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:175
    2.7075 163005664 12. Composer\Installer->run() phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:218
    2.7405 162496064 13. Composer\Installer->doInstall() phar:///usr/bin/composer/src/Composer/Installer.php:229
    2.7663 164101600 14. Composer\EventDispatcher\EventDispatcher->dispatchInstallerEvent() phar:///usr/bin/composer/src/Composer/Installer.php:472
    2.7666 164108584 15. Composer\EventDispatcher\EventDispatcher->doDispatch() phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:135
    2.7667 164108992 16. call_user_func:{phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:176}() phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:176
    2.7667 164108992 17. Symfony\Flex\Flex_composer_tmp0->populateProvidersCacheDir() phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:176
    2.7668 164160528 18. Symfony\Flex\ParallelDownloader->download() phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:571
    2.7668 164161320 19. Symfony\Flex\ParallelDownloader->getNext() /srv/http/show-my-pictures/vendor/symfony/flex/src/ParallelDownloader.php:90
    3.2223 314430096 20. Symfony\Flex\Flex_composer_tmp0->Symfony\Flex\{closure:phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:560-571}() /srv/http/show-my-pictures/vendor/symfony/flex/src/ParallelDownloader.php:278
    3.2224 314430096 21. Composer\DependencyResolver\Pool->whatProvides() phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:561
    3.2224 314430128 22. Composer\DependencyResolver\Pool->computeWhatProvides() phar:///usr/bin/composer/src/Composer/DependencyResolver/Pool.php:193
    3.2224 314430128 23. {anonymous-class:phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:527-544}->whatProvides() phar:///usr/bin/composer/src/Composer/DependencyResolver/Pool.php:204
    3.2224 314430128 24. Symfony\Flex\TruncatedComposerRepository->whatProvides() phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:538
    3.2322 314430344 25. Symfony\Flex\Cache->read() phar:///usr/bin/composer/src/Composer/Repository/ComposerRepository.php:340
    3.2438 324375728 26. Symfony\Flex\Cache->removeLegacyTags() /srv/http/show-my-pictures/vendor/symfony/flex/src/Cache.php:45
    3.2438 324375728 27. Symfony\Flex\Cache->getVersions() /srv/http/show-my-pictures/vendor/symfony/flex/src/Cache.php:58
    3.2438 324375728 28. Symfony\Flex\Downloader->getVersions() /srv/http/show-my-pictures/vendor/symfony/flex/src/Cache.php:118
    3.2438 324375728 29. Symfony\Flex\Downloader->get() /srv/http/show-my-pictures/vendor/symfony/flex/src/Downloader.php:78
    3.2440 324445584 30. Symfony\Flex\Downloader->fetchFileIfLastModified() /srv/http/show-my-pictures/vendor/symfony/flex/src/Downloader.php:174
    3.2440 324446792 31. Symfony\Flex\ParallelDownloader->getContents() /srv/http/show-my-pictures/vendor/symfony/flex/src/Downloader.php:223
    3.2440 324446792 32. Symfony\Flex\ParallelDownloader->copy() /srv/http/show-my-pictures/vendor/symfony/flex/src/ParallelDownloader.php:153
    3.2440 324447680 33. Symfony\Flex\ParallelDownloader->get() /srv/http/show-my-pictures/vendor/symfony/flex/src/ParallelDownloader.php:141
    3.2441 324452520 34. Symfony\Flex\ParallelDownloader->getRemoteContents() phar:///usr/bin/composer/src/Composer/Util/RemoteFilesystem.php:328
    Pouvez vous m'indiquer comment régler ce problème?

  2. #2
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    351
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 351
    Points : 582
    Points
    582
    Par défaut
    Salut,

    A priori ça vient du fait que l'extension xdebug est activée (voir ici) donc soit tu la désactives le temps d'utiliser Composer, soit tu modifies ton php.ini pour augmenter la valeur de xdebug.max_nesting_level (voir ici).

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut
    Merci j'ai modifier le xdebug.ini. Par contre, j'ai une autre erreur lorsque je lance composer. J'ai l'impression que c'est du à la version de Symfony puisque je travaille sur une 4.1.

    You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
    Using version ^5.4 for sensio/framework-extra-bundle
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Restricting packages listed in "symfony/symfony" to "4.1.*"
    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - sensio/framework-extra-bundle v5.4.1 requires symfony/config ^3.4|^4.3 -> no matching package found.
    - sensio/framework-extra-bundle v5.4.0 requires symfony/config ^3.4|^4.3 -> no matching package found.
    - Installation request for sensio/framework-extra-bundle ^5.4 -> satisfiable by sensio/framework-extra-bundle[v5.4.0, v5.4.1].

    Potential causes:
    - A typo in the package name
    - The package is not available in a stable-enough version according to your minimum-stability setting
    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
    - It's a private package and you forgot to add a custom repository to find it

    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

    Installation failed, reverting ./composer.json to its original content.
    Du coup, comment résoudre ce problème?

    Merci

  4. #4
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    351
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 351
    Points : 582
    Points
    582
    Par défaut
    Est-ce que tu peux nous montrer la commande exacte que tu lances et le contenu de ton composer.json stp ?

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut
    Je lance:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    composer require sensio/framework-extra-bundle
    Le contenu de mon composer.json est:
    Code json : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    {
        "type": "project",
        "license": "proprietary",
        "require": {
            "php": "^7.1.3",
            "ext-ctype": "*",
            "ext-iconv": "*",
            "sensio/framework-extra-bundle": "^5.4",
            "symfony/asset": "*",
            "symfony/console": "*",
            "symfony/flex": "^1.1",
            "symfony/form": "4.1.*",
            "symfony/framework-bundle": "*",
            "symfony/orm-pack": "^1.0",
            "symfony/profiler-pack": "^1.0",
            "symfony/security-bundle": "4.1.*",
            "symfony/twig-bundle": "*",
            "symfony/webpack-encore-bundle": "^1.6",
            "symfony/yaml": "*"
        },
        "require-dev": {
            "symfony/dotenv": "*",
            "symfony/maker-bundle": "^1.13",
            "symfony/web-server-bundle": "*"
        },
        "config": {
            "preferred-install": {
                "*": "dist"
            },
            "sort-packages": true
        },
        "autoload": {
            "psr-4": {
                "App\\": "src/"
            }
        },
        "autoload-dev": {
            "psr-4": {
                "App\\Tests\\": "tests/"
            }
        },
        "replace": {
            "paragonie/random_compat": "*",
            "symfony/polyfill-ctype": "*",
            "symfony/polyfill-iconv": "*",
            "symfony/polyfill-php71": "*",
            "symfony/polyfill-php70": "*",
            "symfony/polyfill-php56": "*"
        },
        "scripts": {
            "auto-scripts": {
                "cache:clear": "symfony-cmd",
                "assets:install %PUBLIC_DIR%": "symfony-cmd"
            },
            "post-install-cmd": [
                "@auto-scripts"
            ],
            "post-update-cmd": [
                "@auto-scripts"
            ]
        },
        "conflict": {
            "symfony/symfony": "*"
        },
        "extra": {
            "symfony": {
                "allow-contrib": false,
                "require": "4.1.*"
            }
        }
    }

  6. #6
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    351
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 351
    Points : 582
    Points
    582
    Par défaut
    C'est toi qui a précisé la version à utiliser ? ("^5.4")
    Je pense que la version v5.2.4 est la version la plus élevée que tu peux utiliser car à partir de la v5.3.0 les pré-requis sont "^4.2".

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut
    Non, ce n'est pas moi. Peut être que j'ai fait un composer update, ce qui a probablement mis à jour le composer.json.

    J'ai testé la commande:
    composer require sensio/framework-extra-bundle "v5.2.4"
    Et cela a fonctionné et mis à jour mon composer.json.

    Puis je aussi savoir éventuellement comment migrer vers une version 4.3 de Symfony?

  8. #8
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    351
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 351
    Points : 582
    Points
    582
    Par défaut
    Voici la page de la doc qui explique comment faire une migration vers une autre version mineure : https://symfony.com/doc/current/setu...ade_minor.html

    En gros dans l'idée il faudrait :
    1. Lire les UPGRADE.md des versions pour anticiper les impacts sur ton code
    2. Modifier ton composer.json pour changer les versions des packages Symfony
    3. Faire un composer "update symfony/*"
    4. Éventuellement un composer "update symfony/*" --with-all-dependencies s'il y a des erreurs de dépendance
    5. Enfin un composer update pour mettre à jour les autres packages

  9. #9
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut
    Voilà mon require du fichier composer.json

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
    "require": {
            "php": "^7.1.3",
            "ext-ctype": "*",
            "ext-iconv": "*",
            "doctrine/annotations": "^1.8",
            "sensio/framework-extra-bundle": "v5.2.4",
            "symfony/asset": "^4.1",
            "symfony/console": "^4.1",
            "symfony/flex": "^1.4",
            "symfony/form": "^4.1",
            "symfony/framework-bundle": "^4.1",
            "symfony/orm-pack": "^1.0",
            "symfony/profiler-pack": "^1.0",
            "symfony/security-bundle": "^4.1",
            "symfony/twig-bundle": "^4.1",
            "symfony/validator": "^4.1",
            "symfony/webpack-encore-bundle": "^1.6",
            "symfony/yaml": "^4.1"
        },
    Pour les packages j'ai vérifié sur packagist. Ensuite j'ai bien mis:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    "extra": {
            "symfony": {
                "allow-contrib": false,
                "require": "4.3.*"
            }
        }
    Par contre, je me suis retrouvé avec cela après avoir lancé composer update "symfony/*"ça avait l'air de marcher dans un premier temps:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
     
    You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Restricting packages listed in "symfony/symfony" to "4.3.*"
     
    Prefetching 30 packages 🎶 💨
      - Downloading (100%)
     
    Package operations: 11 installs, 30 updates, 2 removals
      - Removing symfony/security (v4.1.12)
      - Removing symfony/translation (v4.1.12)
      - Updating symfony/asset (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/inflector (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/property-access (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/options-resolver (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/intl (v4.1.12 => v4.3.5): Loading from cache
      - Installing symfony/event-dispatcher-contracts (v1.1.7): Loading from cache
      - Updating symfony/event-dispatcher (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/form (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/routing (v4.1.12 => v4.3.5): Loading from cache
      - Installing symfony/polyfill-php73 (v1.12.0): Loading from cache
      - Installing symfony/polyfill-intl-idn (v1.12.0): Loading from cache
      - Installing symfony/mime (v4.3.5): Loading from cache
      - Updating symfony/http-foundation (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/debug (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/http-kernel (v4.1.13 => v4.3.5): Loading from cache
      - Updating symfony/finder (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/filesystem (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/dependency-injection (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/config (v4.1.12 => v4.3.5): Loading from cache
      - Installing symfony/var-exporter (v4.3.5): Loading from cache
      - Installing symfony/cache-contracts (v1.1.7): Loading from cache
      - Updating symfony/cache (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/framework-bundle (v4.1.12 => v4.3.5): Loading from cache
      - Installing symfony/security-core (v4.3.5): Loading from cache
      - Installing symfony/security-http (v4.3.5): Loading from cache
      - Installing symfony/security-guard (v4.3.5): Loading from cache
      - Installing symfony/security-csrf (v4.3.5): Loading from cache
      - Updating symfony/security-bundle (v4.1.12 => v4.3.5): Loading from cache
      - Installing symfony/translation-contracts (v1.1.7): Loading from cache
      - Updating symfony/validator (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/yaml (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/dotenv (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/process (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/console (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/web-server-bundle (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/doctrine-bridge (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/stopwatch (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/var-dumper (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/twig-bridge (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/twig-bundle (v4.1.12 => v4.3.5): Loading from cache
      - Updating symfony/web-profiler-bundle (v4.1.12 => v4.3.5): Loading from cache
    Writing lock file
    Generating autoload files
    ocramius/package-versions: Generating version class...
    ocramius/package-versions: ...done generating version class
    GitHub API limit (0 calls/hr) is exhausted, could not fetch https://api.github.com/graphql. Create a GitHub OAuth token to go over the API rate limit. You can also wait until 2019-10-09 11:37:04 for the rate limit to reset.
     
    Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+stephanpc+2019-10-09+1237
    to retrieve a token. It will be stored in "/home/deepak/.config/composer/auth.json" for future use by Composer.
    Token (hidden): 
    No token given, aborting.
    You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
     
     
      [Composer\Downloader\TransportException]   
      Could not authenticate against github.com
    Je ne comprends pas. Concernant l'authentification github, je le fais via pseudo/mot de passe, ce qu'il ne m'a pas proposé. Mais ensuite en relançant la commande, j'ai:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
     
    You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Restricting packages listed in "symfony/symfony" to "4.3.*"
    Nothing to install or update
    Writing lock file
    Generating autoload files
    ocramius/package-versions: Generating version class...
    ocramius/package-versions: ...done generating version class
    Executing script cache:clear [KO]
     [KO]
    Script cache:clear returned with error code 1
    !!  
    !!  In FileLoader.php line 166:
    !!                                                                                 
    !!    There is no extension able to load the configuration for "sensio_framework_  
    !!    extra" (in /srv/http/show-my-pictures/config/packages/sensio_framework_extr  
    !!    a.yaml). Looked for namespace "sensio_framework_extra", found "framework",   
    !!    "web_server", "twig", "web_profiler", "webpack_encore", "security", "maker"  
    !!    , "doctrine_cache", "doctrine", "doctrine_migrations" in /srv/http/show-my-  
    !!    pictures/config/packages/sensio_framework_extra.yaml (which is loaded in re  
    !!    source "/srv/http/show-my-pictures/config/packages/sensio_framework_extra.y  
    !!    aml").                                                                       
    !!                                                                                 
    !!  
    !!  In YamlFileLoader.php line 682:
    !!                                                                                 
    !!    There is no extension able to load the configuration for "sensio_framework_  
    !!    extra" (in /srv/http/show-my-pictures/config/packages/sensio_framework_extr  
    !!    a.yaml). Looked for namespace "sensio_framework_extra", found "framework",   
    !!    "web_server", "twig", "web_profiler", "webpack_encore", "security", "maker"  
    !!    , "doctrine_cache", "doctrine", "doctrine_migrations"                        
    !!                                                                                 
    !!  
    !!  
    Script @auto-scripts was called via post-update-cmd
    Concernant la deuxième fois, j'ai même essayé avec: composer update "symfony/*" --with-all-dependencies.

    Sinon, où se trouve les fichiers upgrade.md?

  10. #10
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    351
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 351
    Points : 582
    Points
    582
    Par défaut
    Pour GitHub je ne sais pas trop pourquoi l'authentification était requise...

    Concernant l'autre problème, est-ce dans ton fichier config/bundles.php tu as bien une entrée du tableau qui vaut Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true] ?

  11. #11
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    162
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 162
    Points : 82
    Points
    82
    Par défaut
    Effectivement, il me le manquait. Après l'avoir ajouté composer update "symfony/*" --with-all-dependencies a fonctionné.

    De même, pour le composer update.

    Merci beaucoup

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. fichier installation de composant joomla avec xml
    Par dounia.er dans le forum XML/XSL et SOAP
    Réponses: 1
    Dernier message: 04/05/2011, 15h00
  2. Réponses: 0
    Dernier message: 12/08/2009, 15h40
  3. Réponses: 2
    Dernier message: 18/12/2007, 19h59
  4. Installer un composant avec Borland Developer Studio
    Par maw dans le forum C++Builder
    Réponses: 4
    Dernier message: 04/06/2006, 01h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo