Skip to content

Commit

Permalink
fixed InvoiceExtension: correct di autowire
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Jul 27, 2017
1 parent 2193ee0 commit 5861745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DI/InvoiceExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use WebChemistry\Invoice\Components\PaginatorFactory;
use WebChemistry\Invoice\Data\Company;
use WebChemistry\Invoice\Data\Template;
use WebChemistry\Invoice\Formatter;
use WebChemistry\Invoice\IFormatter;
use WebChemistry\Invoice\Invoice;
use WebChemistry\Invoice\InvoiceFactory;
Expand Down Expand Up @@ -52,7 +53,7 @@ public function loadConfiguration() {

$builder->addDefinition($this->prefix('formatter'))
->setClass(IFormatter::class)
->setFactory(Translator::class, [$config['lang']]);
->setFactory(Formatter::class, [$config['lang']]);

$builder->addDefinition($this->prefix('invoice'))
->setClass(Invoice::class);
Expand Down

0 comments on commit 5861745

Please sign in to comment.