-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/Notifications/AdminModule/NotificationSettingFormService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Venne:CMS (https://github.com/Venne) | ||
* | ||
* Copyright (c) 2011, 2012 Josef Kříž (http://www.josef-kriz.cz) | ||
* | ||
* For the full copyright and license information, please view | ||
* the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Venne\Notifications\AdminModule; | ||
|
||
use Doctrine\ORM\EntityManager; | ||
use Kdyby\Doctrine\Entities\BaseEntity; | ||
use Kdyby\DoctrineForms\EntityFormMapper; | ||
use Venne\Notifications\NotificationSetting; | ||
|
||
/** | ||
* @author Josef Kříž <[email protected]> | ||
*/ | ||
class NotificationSettingFormService extends \Venne\System\DoctrineFormService | ||
{ | ||
|
||
public function __construct( | ||
NotificationSettingFormFactory $formFactory, | ||
EntityManager $entityManager, | ||
EntityFormMapper $entityFormMapper | ||
) { | ||
parent::__construct($formFactory, $entityManager, $entityFormMapper); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function getEntityClassName() | ||
{ | ||
return NotificationSetting::class; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
services: | ||
|
||
- Venne\Notifications\AdminModule\NotificationSettingFormFactory (@system.admin.ajaxFormFactory) | ||
- Venne\Notifications\AdminModule\NotificationSettingFormService |