Answers.Body: <p>I'm not sure why it would have installed such an old version of cv - you need a newer one for drupal 9/10 - but in general you will have better results using the <a href="https://download.civicrm.org/cv/cv.phar" rel="nofollow noreferrer">phar</a> download of cv rather than trying to get it with composer.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-02T14:36:26.663Z
Answers.Text: Sorry, it was my mistake. The older version of cv was present in the search path from an earlier install. Composer installs the correct version of cv, the same version as from direct download. Thank you for your answer.
Answers.UserDisplayName: Ervin Nagy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-01T18:34:59.040Z
Answers.LastActivityDate: 2024-01-01T18:34:59.040Z
Answers.UserDisplayName: Demerit
Body: <p>I use Drupal 10.2.0 fresh installed. I downloaded CiviCrm 5.68 with the commands</p>
  <pre><code>composer require civicrm/civicrm-{core,packages,drupal-8}
  composer require civicrm/cli-tools
  </code></pre>
  <p>This installed civicrm/cv version v0.3.6</p>
  <p>When I want to install CiviCRM with custom options the
  cv core:install command throws an exception:</p>
  <pre><code>[Symfony\Component\Debug\Exception\FatalThrowableError]    
  Class &quot;Symfony\Cmf\Component\Routing\RouteObjectInterface&quot; not found 
  </code></pre>
  <p>Any help appreciated.</p>
  
Tags: <drupal>
Title: cv core:install throws an exception in Drupal 10
ThreadText: # cv core:install throws an exception in Drupal 10
  
  (Asked by: username_0 on 2024-01-01)
  
  I use Drupal 10.2.0 fresh installed. I downloaded CiviCrm 5.68 with the commands
  
  ```
  composer require civicrm/civicrm-{core,packages,drupal-8}
  composer require civicrm/cli-tools
  
  ```
  
  This installed civicrm/cv version v0.3.6
  
  When I want to install CiviCRM with custom options the
  cv core:install command throws an exception:
  
  ```
  [Symfony\Component\Debug\Exception\FatalThrowableError]    
  Class "Symfony\Cmf\Component\Routing\RouteObjectInterface" not found 
  
  ```
  
  Any help appreciated.
  
  **Tags:** drupal
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-01. Score: 0 | Accepted answer
  
  I'm not sure why it would have installed such an old version of cv - you need a newer one for drupal 9/10 - but in general you will have better results using the [phar](https://download.civicrm.org/cv/cv.phar) download of cv rather than trying to get it with composer.
  
  > **Comments:**
  > **username_0**: Sorry, it was my mistake. The older version of cv was present in the search path from an earlier install. Composer installs the correct version of cv, the same version as from direct download. Thank you for your answer.  
  
  ---
  
  