Skip to content

Commit b4c0e63

Browse files
authored
Removed feature folder (#69)
* Removed feature folder * bugfix
1 parent 705fb1e commit b4c0e63

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

EditInPlace/ResponseListener.php renamed to EventListener/EditInPlaceResponseListener.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Translation\Bundle\EditInPlace;
12+
namespace Translation\Bundle\EventListener;
1313

1414
use Symfony\Component\Asset\Packages;
1515
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
1616
use Symfony\Component\Routing\Router;
17+
use Translation\Bundle\EditInPlace\ActivatorInterface;
1718

1819
/**
1920
* Adds Javascript/CSS files to the Response if the Activator returns true.
2021
*
2122
* @author Damien Alexandre <[email protected]>
2223
*/
23-
final class ResponseListener
24+
final class EditInPlaceResponseListener
2425
{
2526
const HTML = <<<'HTML'
2627
<!-- TranslationBundle -->

Resources/config/edit_in_place.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
php_translation.edit_in_place.response_listener:
3-
class: Translation\Bundle\EditInPlace\ResponseListener
3+
class: Translation\Bundle\EventListener\EditInPlaceResponseListener
44
tags:
55
- { name: 'kernel.event_listener', event: 'kernel.response', method: 'onKernelResponse' }
66
arguments:
@@ -14,15 +14,15 @@ services:
1414
arguments: ['@session']
1515

1616
php_translator.edit_in_place.xtrans_html_translator:
17-
class: Translation\Bundle\EditInPlace\Translator
17+
class: Translation\Bundle\Translator\EditInPlaceTranslator
1818
arguments:
1919
- '@translator'
2020
- ~
2121
- '@request_stack'
2222

2323
php_translation.edit_in_place.extension.trans:
2424
public: false
25-
class: Translation\Bundle\EditInPlace\Twig\TranslationExtension
25+
class: Translation\Bundle\Twig\TranslationExtension
2626
arguments:
2727
- '@php_translator.edit_in_place.xtrans_html_translator'
2828
tags:
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Translation\Bundle\EditInPlace;
12+
namespace Translation\Bundle\Translator;
1313

1414
use Symfony\Component\HttpFoundation\RequestStack;
1515
use Symfony\Component\Translation\TranslatorInterface;
1616
use Symfony\Component\Translation\TranslatorBagInterface;
17+
use Translation\Bundle\EditInPlace\ActivatorInterface;
1718

1819
/**
1920
* Custom Translator for HTML rendering only (output `<x-trans>` tags).
2021
*
2122
* @author Damien Alexandre <[email protected]>
2223
*/
23-
final class Translator implements TranslatorInterface, TranslatorBagInterface
24+
final class EditInPlaceTranslator implements TranslatorInterface, TranslatorBagInterface
2425
{
2526
/**
2627
* @var TranslatorInterface|\Symfony\Component\Translation\Translator
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Translation\Bundle\EditInPlace\Twig;
12+
namespace Translation\Bundle\Twig;
1313

1414
/**
15-
* Override the `trans` functions `is_safe` option to allow HTML output from the translator.
15+
* Override the `trans` functions `is_safe` option to allow HTML output from the
16+
* translator. This extension is used by for the EditInPlace feature.
1617
*
1718
* @author Damien Alexandre <[email protected]>
1819
*/

0 commit comments

Comments
 (0)