Skip to content

TheGrimmChester/TaskBundle

Repository files navigation

AWHS Logo

TaskBundle

TaskBundle of AWHSPanel This package provides a basic system for managing tasks in the background.

Requirements

Installation

  1. Clone this bundle inside src/AWHS/ directory.
  2. Enable the bundle in the kernel by adding the following line right after //AWHS Bundles in app/AppKernel.php file:
    new AWHS\TaskBundle\AWHSTaskBundle(),
  3. Append the following configuration to the app/routing.yml file:
awhs_task:
    resource: "@AWHSTaskBundle/Resources/config/routing.yml"
    prefix:   /
  1. 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;
}
  1. 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-data chown -R www-data:www-data /usr/local/awhspanel/panel/*
  2. Load data fixtures: php bin/console doctrine:fixtures:load --fixtures=src/AWHS/TaskBundle/DataFixtures/ORM --append

TODO

  • Multilingual
  • Refactoring old code.

About

TaskBundle of AWHSPanel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published