Skip to content

error on composer install #8

@socialcyberdog

Description

@socialcyberdog

I wanted to check this, unfortunately I get this on composer install - I was not sure what to edit in services.yaml - the source of the problem seems to be a simply case typo, but where to change that?

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 54 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.3.0): Loading from cache
  - Installing symfony/flex (v1.1.1): Loading from cache
  - Installing beberlei/assert (v3.0.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.9.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/annotations (v1.6.0): Loading from cache
  - Installing doctrine/reflection (v1.0.0): Loading from cache
  - Installing doctrine/event-manager (v1.0.0): Loading from cache
  - Installing doctrine/collections (v1.5.0): Loading from cache
  - Installing doctrine/cache (v1.8.0): Loading from cache
  - Installing doctrine/persistence (v1.0.1): Loading from cache
  - Installing doctrine/inflector (v1.3.0): Loading from cache
  - Installing doctrine/common (v2.9.0): Loading from cache
  - Installing symfony/doctrine-bridge (v4.1.6): Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.3): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing symfony/console (v4.1.6): Loading from cache
  - Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
  - Installing zendframework/zend-code (3.3.1): Loading from cache
  - Installing ocramius/proxy-manager (2.2.2): Loading from cache
  - Installing doctrine/dbal (v2.8.0): Loading from cache
  - Installing doctrine/migrations (v1.8.1): Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing league/event (2.1.2): Loading from cache
  - Installing lcobucci/jwt (3.2.4): Loading from cache
  - Installing defuse/php-encryption (v2.2.1): Loading from cache
  - Installing league/oauth2-server (7.2.0): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing ramsey/uuid (3.8.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v4.1.6): Loading from cache
  - Installing symfony/routing (v4.1.6): Loading from cache
  - Installing symfony/http-foundation (v4.1.6): Loading from cache
  - Installing symfony/event-dispatcher (v4.1.6): Loading from cache
  - Installing symfony/http-kernel (v4.1.6): Loading from cache
  - Installing symfony/finder (v4.1.6): Loading from cache
  - Installing symfony/filesystem (v4.1.6): Loading from cache
  - Installing symfony/dependency-injection (v4.1.6): Loading from cache
  - Installing symfony/config (v4.1.6): Loading from cache
  - Installing symfony/cache (v4.1.6): Loading from cache
  - Installing symfony/framework-bundle (v4.1.6): Loading from cache
  - Installing doctrine/orm (v2.6.2): Loading from cache
  - Installing doctrine/doctrine-bundle (1.9.1): Loading from cache
  - Installing doctrine/doctrine-migrations-bundle (v1.3.1): Loading from cache
  - Installing symfony/orm-pack (v1.0.5): Loading from cache
  - Installing symfony/inflector (v4.1.6): Loading from cache
  - Installing symfony/property-access (v4.1.6): Loading from cache
  - Installing symfony/security (v4.1.6): Loading from cache
  - Installing symfony/security-bundle (v4.1.6): Loading from cache
  - Installing symfony/yaml (v4.1.6): Loading from cache
  - Installing symfony/dotenv (v4.1.6): Loading from cache
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 168:
!!                                                                                 
!!    Case mismatch between loaded and declared class names: "App\Infrastructure\  
!!    OAuth2Server\Bridge\Client" vs "App\Infrastructure\oAuth2Server\Bridge\Clie  
!!    nt" in /home/User/Test/symfony-oauth-league/config/services.yaml (which is l  
!!    oaded in resource "/home/User/Test/symfony-oauth-league/config/services.yaml  
!!    ").                                                                          
!!                                                                                 
!!  
!!  In DebugClassLoader.php line 181:
!!                                                                                 
!!    Case mismatch between loaded and declared class names: "App\Infrastructure\  
!!    OAuth2Server\Bridge\Client" vs "App\Infrastructure\oAuth2Server\Bridge\Clie  
!!    nt".                                                                         
!!                                                                                 
!!  
!!  
Script @auto-scripts was called via post-install-cmd

Following your step 1 in your Tutorial produces a different result:

User ~  Test  symfony-oauth-league  step1  $  composer require league/oauth2-server
Using version ^8.0 for league/oauth2-server
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: lcobucci/jwt[3.3.1, 3.2.4].
    - Can only install one of: lcobucci/jwt[3.3.1, 3.2.4].
    - league/oauth2-server 8.0.0 requires lcobucci/jwt ^3.3.1 -> satisfiable by lcobucci/jwt[3.3.1].
    - Installation request for league/oauth2-server ^8.0 -> satisfiable by league/oauth2-server[8.0.0].
    - Installation request for lcobucci/jwt (locked at 3.2.4) -> satisfiable by lcobucci/jwt[3.2.4].

Installation failed, reverting ./composer.json to its original content.

I would like to follow your tutorial, but the first step seems a little rough atm.

It would be great if you would like to take a look and fix that, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions