示例#1
0
 public function isActivated(Community $community) : bool
 {
     return $community->getFeatures()->hasFeature($this->getCode());
 }
示例#2
0
 public function deactivateFeature(Community $community, string $featureCode)
 {
     $community->getFeatures()->excludeFeature($featureCode);
     $this->getEntityManager()->flush([$community]);
 }