- 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
37 lines
777 B
PHP
37 lines
777 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 customer detail pages, to add additional content boxes.
|
|
*
|
|
* @see https://symfony.com/doc/5.4/templates.html#embedding-controllers
|
|
*/
|
|
final class CustomerDetailControllerEvent extends AbstractCustomerEvent
|
|
{
|
|
/**
|
|
* @var array<string>
|
|
*/
|
|
private array $controller = [];
|
|
|
|
public function addController(string $controller): void
|
|
{
|
|
$this->controller[] = $controller;
|
|
}
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getController(): array
|
|
{
|
|
return $this->controller;
|
|
}
|
|
}
|