1
0
Fork 0

Add scripts loading

pull/277/head
Jordi Boggiano 2012-02-05 16:14:44 +01:00
parent 7add1001ae
commit d43dd33632
1 changed files with 7 additions and 0 deletions

View File

@ -74,6 +74,13 @@ class ArrayLoader
$package->setBinaries($config['bin']); $package->setBinaries($config['bin']);
} }
if (isset($config['scripts']) && is_array($config['scripts'])) {
foreach ($config['scripts'] as $event => $listeners) {
$config['scripts'][$event]= (array) $listeners;
}
$package->setScripts($config['scripts']);
}
if (!empty($config['description']) && is_string($config['description'])) { if (!empty($config['description']) && is_string($config['description'])) {
$package->setDescription($config['description']); $package->setDescription($config['description']);
} }