Skip to content

Commit

Permalink
[8.x] Add a method to remove a resolved view engine (#36955)
Browse files Browse the repository at this point in the history
* add a method to remove a resolved view engine

* clean
  • Loading branch information
themsaid authored Apr 12, 2021
1 parent d834187 commit cf439a0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/View/Engines/EngineResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,15 @@ public function resolve($engine)

throw new InvalidArgumentException("Engine [{$engine}] not found.");
}

/**
* Remove a resolved engine.
*
* @param string $engine
* @return void
*/
public function forget($engine)
{
unset($this->resolved[$engine]);
}
}

0 comments on commit cf439a0

Please sign in to comment.