Skip to content

Commit

Permalink
Prepare v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Oct 29, 2018
1 parent afd670e commit ccb9b90
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
"dev-master": "2.2.x-dev"
}
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/CallableDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(string $name, callable $callable, array $callableArg
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Invokable::class
),
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/CombinedDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(string $name, array $dictionaries)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Combined::class
),
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/DictionaryRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(Collection $collection)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Collection::class
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(Container $container)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Factory\Invokable::class
),
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/Factory/Combined.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function create(string $name, array $config): Dictionary
return $this->dictionaries[$name];
}, $config['dictionaries']);

return new Dictionary\CombinedDictionary($name, $dictionaries);
return new Dictionary\Combined($name, $dictionaries);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(Dictionary\Factory\Aggregate $aggregate)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Dictionary\Factory\Aggregate::class
),
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(string $name, array $values)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Simple::class
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(Dictionary $dictionary, DictionaryDataCollector $col
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Traceable::class
),
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Dictionary/ValueTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Knp\DictionaryBundle\Dictionary;

/**
* @deprecated Interface Knp\DictionaryBundle\Dictionary\ValueTransformer is deprecated since version 2.1, to be removed in 3.0. Use Knp\DictionaryBundle\ValueTransformer instead.
* @deprecated Interface Knp\DictionaryBundle\Dictionary\ValueTransformer is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\ValueTransformer instead.
*/
interface ValueTransformer extends \Knp\DictionaryBundle\ValueTransformer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct()
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Constant::class
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct()
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
Aggregate::class
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ services:
public: false
alias: Knp\DictionaryBundle\Dictionary\Factory\Combined

Knp\DictionaryBundle\Dictionary\Factory:
public: true
alias: Knp\DictionaryBundle\Dictionary\Factory\FactoryAggregate

Knp\DictionaryBundle\Dictionary\Factory\FactoryAggregate:
public: false
arguments:
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/DictionaryBundle/Twig/DictionaryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(Collection $dictionaries)
{
@trigger_error(
sprintf(
'Class %s is deprecated since version 2.1, to be removed in 3.0. Use %s instead.',
'Class %s is deprecated since version 2.2, to be removed in 3.0. Use %s instead.',
__CLASS__,
\Knp\DictionaryBundle\Templating\Extension\Dictionary::class
),
Expand Down

0 comments on commit ccb9b90

Please sign in to comment.