Skip to content

Commit

Permalink
fix: crashed on Lumen framework (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Craig Morris <[email protected]>
  • Loading branch information
chojnicki and morrislaptop authored Jan 17, 2022
1 parent a68c4a4 commit 63d296a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Normalizer implements CastsAttributes
public function __construct(string $class)
{
$this->class = $class;
$this->serializer = resolve(SymfonySerializer::class);
$this->serializer = app(SymfonySerializer::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Serializer implements CastsAttributes
public function __construct(string $class)
{
$this->class = $class;
$this->serializer = resolve(SymfonySerializer::class);
$this->serializer = app(SymfonySerializer::class);
}

/**
Expand Down

0 comments on commit 63d296a

Please sign in to comment.