mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
#PHRAS-741 #time 15m
added 2 events
This commit is contained in:
@@ -52,6 +52,14 @@ abstract class Command extends SymfoCommand implements CommandInterface
|
|||||||
return $logger;
|
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);
|
return $this->doExecute($input, $output);
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ class CollectionUnmounted extends CollectionRelated
|
|||||||
return $this->args['coll_id'];
|
return $this->args['coll_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getCollName()
|
||||||
{
|
{
|
||||||
return $this->args['name'];
|
return $this->args['coll_name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -625,7 +625,7 @@ class collection implements cache_cacheableInterface
|
|||||||
null, // the coll is not available anymore
|
null, // the coll is not available anymore
|
||||||
array(
|
array(
|
||||||
'coll_id'=>$old_coll_id,
|
'coll_id'=>$old_coll_id,
|
||||||
'name'=>$old_name
|
'coll_name'=>$old_name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user