Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ web/private/
# Ignore files generated by vim
/tags

# Ignore custom phpactor settings
.phpactor.json

# Pantheon
web/sites/default/default.services.pantheon.preproduction.yml
pantheon_config.sh
Expand Down
16 changes: 16 additions & 0 deletions .phpactor.json.example
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
}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ To run PHPUnit tests for the `migrate_tools` contributed module, you would use:
ddev phpunit-contrib migrate_tools
```

## Debugging
## Debugging and IDE config

## Visual Studio Code instructions

Expand All @@ -269,6 +269,13 @@ ddev phpunit-contrib migrate_tools
Check the [DDEV documentation](https://ddev.readthedocs.io/en/latest/users/debugging-profiling/step-debugging/)
if you are using other IDE or want to know more about this feature.

## Phpactor integration

Copy .phpactor.json.example to .phpactor.json to integrate
with [phpactor](https://phpactor.readthedocs.io/) in your IDE.

Then run `phpactor config:init` to set your repository as trusted.

## Deploy to Pantheon

### Pantheon Setup
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,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 @@ -141,6 +142,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 @@ -187,6 +189,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