add acl to activity + bootstrap php

This commit is contained in:
2015-07-03 21:34:48 +02:00
parent 508bf02dba
commit eb11570541
9 changed files with 446 additions and 3 deletions

View File

@@ -25,11 +25,13 @@ use Chill\MainBundle\Entity\User;
use Chill\ActivityBundle\Entity\ActivityReason;
use Chill\ActivityBundle\Entity\ActivityType;
use Chill\PersonBundle\Entity\Person;
use Chill\MainBundle\Entity\HasCenterInterface;
use Chill\MainBundle\Entity\HasScopeInterface;
/**
* Activity
*/
class Activity
class Activity implements HasCenterInterface, HasScopeInterface
{
/**
* @var integer
@@ -307,5 +309,17 @@ class Activity
{
return $this->person;
}
/**
* get the center
*
* center is extracted from person
*
* @return \Chill\MainBundle\Entity\Center
*/
public function getCenter()
{
return $this->person->getCenter();
}
}