Files
kimai2/src/Event/ProjectDetailControllerEvent.php
Kevin Papst 0c397e5080 Release 2.0.14 (#3963)
- show customer totals in single-user reports
- support custom fonts in export / invoice templates
- require daterange for export and invoice searches
- improve help label for user locale
- show decimal formats in help controller
- cache tag amount per request
- composer updates
- improved code styles
- added default label to date picker
- new macros & use own macro
2023-04-05 19:14:49 +02:00

37 lines
774 B
PHP

<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Event;
/**
* Triggered for project detail pages, to add additional content boxes.
*
* @see https://symfony.com/doc/5.4/templates.html#embedding-controllers
*/
final class ProjectDetailControllerEvent extends AbstractProjectEvent
{
/**
* @var array<string>
*/
private array $controller = [];
public function addController(string $controller): void
{
$this->controller[] = $controller;
}
/**
* @return string[]
*/
public function getController(): array
{
return $this->controller;
}
}