This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests/App/config/config.yml Co-authored-by: Javier Spagnoletti <phansys@gmail.com> Update tests/App/config/config.yml Co-authored-by: Javier Spagnoletti <phansys@gmail.com> Update tests/App/config/config.yml Co-authored-by: Javier Spagnoletti <phansys@gmail.com>
- Loading branch information
Showing
8 changed files
with
109 additions
and
65 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
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> | ||
<import type="annotation" resource="Sonata\NotificationBundle\Controller\Api\MessageController" name-prefix="sonata_api_notification_message_"/> | ||
<route id="sonata_api_notification_message_get_messages" path="/messages.{_format}" methods="GET" controller="Sonata\NotificationBundle\Controller\Api\MessageController::getMessagesAction" format="json"> | ||
<requirement key="_format">json|xml|html</requirement> | ||
</route> | ||
<route id="sonata_api_notification_message_post_message" path="/messages.{_format}" methods="POST" controller="Sonata\NotificationBundle\Controller\Api\MessageController::postMessageAction" format="json"> | ||
<requirement key="_format">json|xml|html</requirement> | ||
</route> | ||
</routes> |
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,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sonata\NotificationBundle\Tests\App\Entity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
use Sonata\NotificationBundle\Entity\BaseMessage; | ||
|
||
/** | ||
* @ORM\Entity | ||
* @ORM\Table(name="notification__message") | ||
*/ | ||
class Message extends BaseMessage | ||
{ | ||
/** | ||
* @ORM\Id | ||
* @ORM\GeneratedValue | ||
* @ORM\Column(type="integer") | ||
*/ | ||
protected $id; | ||
} |
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,46 @@ | ||
framework: | ||
test: true | ||
secret: '50n474.U53r' | ||
form: | ||
enabled: true | ||
translator: | ||
enabled: true | ||
session: | ||
handler_id: session.handler.native_file | ||
storage_id: session.storage.mock_file | ||
name: MOCKSESSID | ||
profiler: | ||
enabled: true | ||
collect: false | ||
|
||
twig: | ||
exception_controller: null | ||
paths: | ||
- '%kernel.project_dir%/templates' | ||
strict_variables: '%kernel.debug%' | ||
|
||
|
||
fos_rest: | ||
param_fetcher_listener: true | ||
body_listener: true | ||
format_listener: true | ||
view: | ||
view_response_listener: force | ||
body_converter: | ||
enabled: false | ||
validate: true | ||
|
||
doctrine: | ||
dbal: | ||
driver: pdo_sqlite | ||
path: '%app.base_dir%sonata_notification_test.db3' | ||
orm: | ||
entity_managers: | ||
default: | ||
mappings: | ||
SonataNotificationBundle: ~ | ||
SonataNotificationTest: | ||
type: annotation | ||
dir: '%kernel.project_dir%/Entity' | ||
is_bundle: false | ||
prefix: Sonata\NotificationBundle\Tests\App\Entity |
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,13 @@ | ||
security: | ||
role_hierarchy: ~ | ||
|
||
providers: | ||
in_memory: | ||
memory: | ||
users: ~ | ||
|
||
firewalls: | ||
test: | ||
security: false | ||
|
||
access_control: ~ |
Empty file.