@@ 185-196 (lines=12) @@ | ||
182 | $namespace = empty( $namespace ) ? null : $namespace; |
|
183 | $map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, $namespace ); |
|
184 | ||
185 | foreach ( $map as $class => $path ) { |
|
186 | $classCode = var_export( $class, true ); |
|
187 | $pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path ); |
|
188 | $versionCode = var_export( $package['version'], true ); |
|
189 | $classmapString .= <<<CLASS_CODE |
|
190 | $classCode => array( |
|
191 | 'version' => $versionCode, |
|
192 | 'path' => $pathCode |
|
193 | ), |
|
194 | CLASS_CODE; |
|
195 | $classmapString .= PHP_EOL; |
|
196 | } |
|
197 | } |
|
198 | } |
|
199 | ||
@@ 208-219 (lines=12) @@ | ||
205 | ); |
|
206 | $map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, null ); |
|
207 | ||
208 | foreach ( $map as $class => $path ) { |
|
209 | $classCode = var_export( $class, true ); |
|
210 | $pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path ); |
|
211 | $versionCode = var_export( $package['version'], true ); |
|
212 | $classmapString .= <<<CLASS_CODE |
|
213 | $classCode => array( |
|
214 | 'version' => $versionCode, |
|
215 | 'path' => $pathCode |
|
216 | ), |
|
217 | CLASS_CODE; |
|
218 | $classmapString .= PHP_EOL; |
|
219 | } |
|
220 | } |
|
221 | ||
222 | return 'array( ' . PHP_EOL . $classmapString . ');' . PHP_EOL; |