enhanced plugin support (#634)

- refactored admin controller and templates
- plugin support for entity actions
- changed column mail to email in customer table
- refactored theme events
This commit is contained in:
Kevin Papst
2019-03-11 14:46:30 +01:00
committed by GitHub
parent 519be2d5a2
commit 3ac72a5c89
104 changed files with 1878 additions and 976 deletions

View File

@@ -31,3 +31,8 @@ doctrine:
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: Kimai
loggable:
type: annotation
alias: Gedmo
prefix: Gedmo\Loggable\Entity
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"

View File

@@ -1,6 +1,6 @@
app.test.activity_recent:
path: /{_locale}/activities/recent
controller: App\Controller\ActivityController::recentActivitiesAction
controller: App\Controller\NavbarController::recentActivitiesAction
requirements:
_locale: '%app_locales%'
defaults:

View File

@@ -1,6 +1,6 @@
App\Entity\Customer:
exclusion_policy: All
custom_accessor_order: [id, name, number, comment, visible, company, contact, address, country, currency, phone, fax, mobile, mail, homepage, timezone, fixedRate, hourlyRate]
custom_accessor_order: [id, name, number, comment, visible, company, contact, address, country, currency, phone, fax, mobile, email, homepage, timezone, fixedRate, hourlyRate]
properties:
id:
include: true
@@ -41,7 +41,7 @@ App\Entity\Customer:
mobile:
include: true
groups: [Entity]
mail:
email:
include: true
groups: [Entity]
homepage:

View File

@@ -51,7 +51,7 @@ services:
arguments:
$timesheetAsMarkdown: "%kimai.timesheet.markdown%"
App\Controller\Admin\CustomerController:
App\Controller\CustomerController:
arguments:
$defaults: "%kimai.defaults%"
@@ -75,8 +75,7 @@ services:
class: App\Doctrine\TimesheetSubscriber
arguments: [!tagged timesheet.calculator]
tags:
- { name: doctrine.event_listener, event: prePersist, lazy: true }
- { name: doctrine.event_listener, event: preUpdate, lazy: true }
- { name: doctrine.event_subscriber, priority: 50 }
# make sure, that sqlite supports foreign keys and cascade deletes
App\Doctrine\SqliteSessionInitSubscriber:
@@ -177,4 +176,3 @@ services:
App\Repository\InvoiceDocumentRepository:
class: App\Repository\InvoiceDocumentRepository
arguments: ['%kimai.invoice.documents%']