#PHRAS-741 #time 15m

added 2 events
This commit is contained in:
Jean-Yves Gaulier
2015-10-05 17:13:41 +02:00
parent 2ac08d225f
commit ce6e42e9b4
3 changed files with 11 additions and 3 deletions

View File

@@ -52,6 +52,14 @@ abstract class Command extends SymfoCommand implements CommandInterface
return $logger;
})
);
$this->container['dispatcher'] = $this->container->share(
$this->container->extend('dispatcher', function ($dispatcher, Application $app) {
$dispatcher->addSubscriber($app['phraseanet.bo-events-subscriber']);
return $dispatcher;
})
);
}
return $this->doExecute($input, $output);

View File

@@ -11,8 +11,8 @@ class CollectionUnmounted extends CollectionRelated
return $this->args['coll_id'];
}
public function getName()
public function getCollName()
{
return $this->args['name'];
return $this->args['coll_name'];
}
}

View File

@@ -625,7 +625,7 @@ class collection implements cache_cacheableInterface
null, // the coll is not available anymore
array(
'coll_id'=>$old_coll_id,
'name'=>$old_name
'coll_name'=>$old_name
)
)
);