ConsoleService
extends TransactionalService
in package
Table of Contents
Properties
- $container : mixed
- $em : EntityManager
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- poolExecute() : mixed
- runCommand() : string
- Run console command
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$container
protected
mixed
$container
Tags
$em
protected
EntityManager
$em
The Entity Manager
Methods
addRepository()
Add a repository to this service
public
addRepository(int $key, string $class) : void
Parameters
- $key : int
-
Key
- $class : string
-
Class
addService()
Add a service to this service
public
addService(int $key, mixed $service) : void
Parameters
- $key : int
-
Key
- $service : mixed
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagerpoolExecute()
public
poolExecute(mixed $commandes, mixed $nb_max_process) : mixed
Parameters
- $commandes : mixed
- $nb_max_process : mixed
runCommand()
Run console command
public
runCommand(mixed $command, mixed $args[, bool $getGeneratedCommand = false ][, bool $runInBackground = true ][, mixed $outputFile = null ]) : string
Parameters
- $command : mixed
- $args : mixed
- $getGeneratedCommand : bool = false
- $runInBackground : bool = true
- $outputFile : mixed = null
Return values
stringsetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager