You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-2Lines changed: 31 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,23 @@ generated after the autoloader is dumped. If you modify attributes you'll have t
83
83
run `composer dump` to refresh the attributes file.
84
84
85
85
As a workaround you could have watchers on the directories that contain classes with attributes to
86
-
run `composer dump` when you make changes. [PhpStorm offers file watchers][phpstorm-watchers]. You
87
-
could also use [spatie/file-system-watcher][], it only requires PHP.
86
+
run `XDEBUG_MODE=off composer dump` when you make changes. [PhpStorm offers file watchers][phpstorm-watchers]. You could also use [spatie/file-system-watcher][], it only requires PHP.
87
+
88
+
89
+
90
+
## Autoloading
91
+
92
+
You can require the attributes file as shown in the usage example, but it's preferable to use Composer's autoloading feature:
93
+
94
+
```json
95
+
{
96
+
"autoloading": {
97
+
"files": [
98
+
"vendor/attributes.php"
99
+
]
100
+
}
101
+
}
102
+
```
88
103
89
104
90
105
@@ -109,6 +124,20 @@ specified using the `extra` section of `composer.json`:
109
124
}
110
125
```
111
126
127
+
For instance, if you are only concerned about the attributes of your own project, you could ignore the vendor directory:
0 commit comments