TaskBundle of AWHSPanel This package provides a basic system for managing tasks in the background.
- Have installed the foundation
- Have installed the UserBundle
- Clone this bundle inside
src/AWHS/
directory. - Enable the bundle in the kernel by adding the following line right after
//AWHS Bundles
inapp/AppKernel.php
file:
new AWHS\TaskBundle\AWHSTaskBundle(),
- Append the following configuration to the
app/routing.yml
file:
awhs_task:
resource: "@AWHSTaskBundle/Resources/config/routing.yml"
prefix: /
- Add the following code to the
src/AWHS/UserBundle/Entity/User.php
file:
/**
* @ORM\OneToMany(targetEntity="AWHS\TaskBundle\Entity\Task", mappedBy="user")
* @ORM\OrderBy({"id" = "DESC"})
*/
private $tasks;
/**
* Get tasks
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getTasks()
{
return $this->tasks;
}
- Update database & clear cache:
php bin/console doctrine:schema:update --force; php bin/console cache:clear; php bin/console cache:clear --env=prod
You may have to set permissions back to www-datachown -R www-data:www-data /usr/local/awhspanel/panel/*
- Load data fixtures:
php bin/console doctrine:fixtures:load --fixtures=src/AWHS/TaskBundle/DataFixtures/ORM --append
- Multilingual
- Refactoring old code.