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
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,9 @@ This parameter accepts an array holding options.
82
82
-`is_recursive`: (boolean) whether to scan sub-directories.
83
83
-`ignore_note_file_names`: (array) ignore note file names that tell the parser to skip the directory. When one of the files exist in the parsing directory, the directory will be skipped. Default: `[ 'ignore-class-map.txt' ]`,
84
84
85
-
##### Example
85
+
##### Example
86
+
87
+
##### Generating a class map in the script directory.
86
88
```php
87
89
new \PHPClassMapGenerator\PHPClassMapGenerator(
88
90
dirname( __DIR__ ),
@@ -103,6 +105,40 @@ new \PHPClassMapGenerator\PHPClassMapGenerator(
103
105
]
104
106
);
105
107
```
108
+
109
+
##### Do not write to a file
110
+
```php
111
+
$_oGenerator = new \PHPClassMapGenerator\PHPClassMapGenerator(
112
+
__DIR__, // base dir
113
+
__DIR__ . '/_scandir', // scan dir name
114
+
__DIR__ . '/class-map.php',
115
+
[
116
+
'do_in_constructor' => false,
117
+
]
118
+
);
119
+
print_r( $_oGenerator->get() );
120
+
```
121
+
122
+
#### Find CSS files
123
+
```php
124
+
$_oGenerator = new \PHPClassMapGenerator\PHPClassMapGenerator(
0 commit comments