mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
#PHRAS-741 #time 5m
fix used event id to match new tense
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Admin;
|
||||
|
||||
use Alchemy\Phrasea\Core\Event\CollectionCreateEvent;
|
||||
use Alchemy\Phrasea\Core\Event\CollectionCreated;
|
||||
use Alchemy\Phrasea\Core\PhraseaEvents;
|
||||
use Silex\Application;
|
||||
use Silex\ControllerProviderInterface;
|
||||
@@ -1062,7 +1062,12 @@ class Databox implements ControllerProviderInterface
|
||||
}
|
||||
}
|
||||
|
||||
$app['dispatcher']->dispatch(PhraseaEvents::COLLECTION_CREATE, new CollectionCreateEvent($collection));
|
||||
$app['dispatcher']->dispatch(
|
||||
PhraseaEvents::COLLECTION_CREATED,
|
||||
new CollectionCreated(
|
||||
$collection
|
||||
)
|
||||
);
|
||||
|
||||
return $app->redirectPath('admin_display_collection', array('bas_id' => $collection->get_base_id(), 'success' => 1, 'reload-tree' => 1));
|
||||
} catch (\Exception $e) {
|
||||
|
||||
@@ -65,7 +65,7 @@ class PhraseaEngineSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
return array(
|
||||
PhraseaEvents::POST_AUTHENTICATE => array('onAuthenticate', 0),
|
||||
PhraseaEvents::COLLECTION_CREATE => array('onCollectionCreate', 0),
|
||||
PhraseaEvents::COLLECTION_CREATED => array('onCollectionCreate', 0),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user