Skip to content

Commit

Permalink
😁 again
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Nov 5, 2015
1 parent bce76ce commit 52be00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PlatesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class PlatesProvider implements ServiceProviderInterface
*/
public function register(Container $container)
{
if (!$container['settings']->has('view')) {
if (!isset($container->get('settings')['view'])) {
throw new InvalidArgumentException('Template configuration not found');
}

$engine = new Plates($container['settings']->get('view'));
$engine = new Plates($container->get('settings')['view']);

$engine->loadExtension(
new PlatesExtension($container['router'], $container['request']->getUri())
Expand Down

0 comments on commit 52be00d

Please sign in to comment.