class Fixtures (View source)

Fixtures class

Properties

protected $entityManager
protected $request
protected $cacheDir
protected $debug
protected $configPath

Methods

__construct(EntityManager $entityManager, string $cacheDir, string $configPath, $rootDir, boolean $debug = true, Request $request = null)

No description

void
installFixtures()

No description

clearResultCache()

No description

void
createFolders()

No description

void
installBackofficeTheme()

No description

void
installDefaultTranslation()

No description

boolean
createDefaultUser(array $data)

No description

getRole(string $roleName = Role::ROLE_SUPERADMIN)

Get role by name, and create it if does not exist.

getSetting(string $name)

Get role by name, and create it if does not exist.

void
saveInformations(array $data)

No description

installTheme($data)

No description

int
installFrontendTheme($classname)

Install theme and return its ID.

Details

__construct(EntityManager $entityManager, string $cacheDir, string $configPath, $rootDir, boolean $debug = true, Request $request = null)

Parameters

EntityManager $entityManager
string $cacheDir
string $configPath
$rootDir
boolean $debug
Request $request

void installFixtures()

Return Value

void

protected clearResultCache()

void createFolders()

Return Value

void

protected void installBackofficeTheme()

Return Value

void

protected void installDefaultTranslation()

Return Value

void

boolean createDefaultUser(array $data)

Parameters

array $data

Return Value

boolean

protected Role getRole(string $roleName = Role::ROLE_SUPERADMIN)

Get role by name, and create it if does not exist.

Parameters

string $roleName

Return Value

Role

protected Setting getSetting(string $name)

Get role by name, and create it if does not exist.

Parameters

string $name

Return Value

Setting

void saveInformations(array $data)

Parameters

array $data

Return Value

void

installTheme($data)

Parameters

$data

int installFrontendTheme($classname)

Install theme and return its ID.

Parameters

$classname

Return Value

int