Skip to content

Commit

Permalink
renamed the bundle
Browse files Browse the repository at this point in the history
- renamed from translation- to tag bundle to reflect the intentions of this bundle
  • Loading branch information
wickedOne committed Feb 3, 2023
1 parent 1789331 commit 20fd4f1
Show file tree
Hide file tree
Showing 25 changed files with 118 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$header = <<<'EOF'
This file is part of the Phrase Translation Bundle.
This file is part of the Phrase Tag Bundle.
(c) wicliff <wicliff.wolda@gmail.com>
For the full copyright and license information, please view the LICENSE
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# phrase-translation-bundle
# phrase-tag-bundle
providing some commands & services to help you manage your translation keys at phrase.
this might be especially usefull when you switched to using the [phrase translation provider](https://github.com/wickedOne/phrase-translation-provider).

Expand All @@ -21,7 +21,7 @@ of the Composer documentation.
Open a command console, enter your project directory and execute:

```console
$ composer require wickedone/phrase-translation-bundle
$ composer require wickedone/phrase-tag-bundle
```

### Applications that don't use Symfony Flex
Expand All @@ -32,7 +32,7 @@ Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```console
$ composer require wickedone/phrase-translation-bundle
$ composer require wickedone/phrase-tag-bundle
```

#### Step 2: Enable the Bundle
Expand All @@ -45,14 +45,14 @@ in the `config/bundles.php` file of your project:

return [
// ...
WickedOne\PhraseTranslationBundle\WickedOnePhraseTranslationBundle::class => ['all' => true],
WickedOne\PhraseTagBundle\WickedOnePhraseTagBundle::class => ['all' => true],
];
```

#### step 3: configuration
in your `config/packages` directory create a `wickedone.yaml` file with the following content:
```yaml
wicked_one_phrase_translation:
wicked_one_phrase_tag:
dsn: '%env(PHRASE_DSN)%'
```
and in your `.env` file define the phrase dsn like so
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "wickedone/phrase-translation-bundle",
"name": "wickedone/phrase-tag-bundle",
"description": "helpers to deal with your phrase translations",
"type": "symfony-bundle",
"license": "MIT",
"autoload": {
"psr-4": {
"WickedOne\\PhraseTranslationBundle\\": "src/"
"WickedOne\\PhraseTagBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"WickedOne\\PhraseTranslationBundle\\Tests\\": "tests/"
"WickedOne\\PhraseTagBundle\\Tests\\": "tests/"
}
},
"authors": [
{
"name": "wickedOne",
"email": "wicliff.wolda@gmail.com"
"homepage": "https://github.com/wickedOne"
}
],
"minimum-stability": "stable",
Expand Down
78 changes: 40 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"
>
<services>
<service id="WickedOne\PhraseTranslationBundle\Service\PhraseTaggerFactory">
<service id="WickedOne\PhraseTagBundle\Service\PhraseTaggerFactory">
<argument type="service" id="http_client" />
<argument type="service" id="monolog.logger" />
</service>
Expand Down
6 changes: 3 additions & 3 deletions src/Command/AbstractPhraseKeyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
declare(strict_types=1);

/*
* This file is part of the Phrase Translation Bundle.
* This file is part of the Phrase Tag Bundle.
* (c) wicliff <wicliff.wolda@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace WickedOne\PhraseTranslationBundle\Command;
namespace WickedOne\PhraseTagBundle\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Translation\Exception\ProviderException;
use WickedOne\PhraseTranslationBundle\Service\PhraseTagService;
use WickedOne\PhraseTagBundle\Service\PhraseTagService;

/**
* @author wicliff <wicliff.wolda@gmail.com>
Expand Down
Loading

0 comments on commit 20fd4f1

Please sign in to comment.