Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updated drupal core to 8.2.4 version composer autoloader broken on several namespaces
For exemple missing the Symfony DomCrawler in psr4 definitions...and many others.
Comments
Comment #2
alexpottDomCrawler is available for me on 8.2.4...
@grumpy74 how did you do the upgrade and does vendor/symfony/dom-crawler/Crawler.php exist... I guess not. I think what might have occurred here is due to https://www.drupal.org/blog/drupal-8-will-no-longer-include-dev-dependen.... This was announced in the 8.2.3 release notes - https://www.drupal.org/project/drupal/releases/8.2.3.
Comment #3
grumpy74 CreditAttribution: grumpy74 commentedHi @alexpott,
I just downloaded the drupal 8.2.4 verison and replace the files.
But the folder Symfony component is not there. How did ypu get symfony\compoent folder in yur drupal vendor folder ?
In my vendor folder, missing the folder vendor\symfony\dom-crawler that is a dev version, so your anwer was correct.
But How can I have Symfony\Component\DomCrawler\Crawler in my vendor ?
Thx for help
Comment #4
grumpy74 CreditAttribution: grumpy74 commentedand I got my path to dom-crawler folder due to this :
https://api.drupal.org/api/drupal/namespace/Symfony!Component!DomCrawler...
Comment #5
alexpott@grumpy74 what code do you have that is using the dom-crawler? The reason this is no longer included in 8.2.4 is that is it is only needed for running our test suite - so it is a dev dependency. If you download the 8.2.x development tarball it'll be there but it'd be best to work out why you need this. Removing the development only code was a decision based on several factors and by design so this is not a bug and not critical.
Comment #6
grumpy74 CreditAttribution: grumpy74 commentedOk thanks for the reply and explanation.
So I will include symfony domCrawler not in dev version using composer in my project.
Thaks again @alexpott, and sorry for the bad categorization in "critical" (was my first issue post).
Comment #7
grumpy74 CreditAttribution: grumpy74 commented