Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .phpactor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "~/bin/phpactor/phpactor.schema.json",
"indexer.supported_extensions": [
"php",
"inc",
"module"
],
"indexer.include_patterns": [
"/**/*.php",
"/**/*.inc",
"/**/*.module"
],
"language_server_phpstan.enabled": false,
"php_code_sniffer.enabled": false,
"prophecy.enabled": true
}
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"drupal/devel": "^5",
"drupal/drupal_test_assertions": "^1.0",
"drupal/potx": "^1.0@alpha",
"fenetikm/autoload-drupal": "^1.0",
"gettext/gettext": "^5.7",
"mikey179/vfsstream": "^1.6",
"mink/webdriver-classic-driver": "^1.1",
Expand Down Expand Up @@ -140,6 +141,7 @@
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"fenetikm/autoload-drupal": true,
"mglaman/composer-drupal-lenient": true,
"oomphinc/composer-installers-extender": true,
"php-http/discovery": true,
Expand Down Expand Up @@ -186,6 +188,17 @@
"web/modules/contrib/webform/composer.libraries.json"
]
},
"extra": {
"autoload-drupal": {
"modules": [
"app/modules/contrib/",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://phpactor.readthedocs.io/en/master/integrations/drupal8.html#option-1-bootstrap-drupal-on-the-fly-to-generate-the-autoloader

I see that there are two ways to use it. This is option 2). It seems to be more invasive. But might be fine, just asking why option 1) isn't chosen here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AronNovak Honestly I haven't tried option 1 to see if it works fine with ddev. Based on the frequency of installing new modules it seems a faster option to go with a static approach, if the db is broken this should still work.

"app/modules/custom/",
"app/themes/contrib/",
"app/themes/custom/",
"app/core/modules/"
]
}
},
"drupal-core-project-message": {
"include-keys": ["homepage", "support"],
"post-create-project-cmd-message": [
Expand Down
Loading
Loading