Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit ae7791e

Browse files
author
Erfan Shamabadi
committed
Add bower info to packages on function getInstalled
To have access to other information of packages such as main files on getInstalled function
1 parent 60a0121 commit ae7791e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Bowerphp/Installer/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function getInstalled(Finder $finder)
117117
if (is_null($bower)) {
118118
throw new RuntimeException(sprintf('Invalid content in .bower.json for package %s.', $packageDirectory));
119119
}
120-
$packages[] = new Package($bower['name'], null, $bower['version'], isset($bower['dependencies']) ? $bower['dependencies'] : null);
120+
$packages[] = new Package($bower['name'], null, $bower['version'], isset($bower['dependencies']) ? $bower['dependencies'] : null, $bower);
121121
}
122122
}
123123

0 commit comments

Comments
 (0)