Skip to content

Commit

Permalink
InvokableFactory usage and short array syntax in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 20, 2016
1 parent 73e7263 commit bd6d236
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions module/Application/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Application;

use Zend\ServiceManager\Factory\InvokableFactory;

return [
'router' => [
'routes' => [
Expand All @@ -15,7 +17,7 @@
'options' => [
'route' => '/',
'defaults' => [
'controller' => 'Application\Controller\Index',
'controller' => Controller\IndexController::class,
'action' => 'index',
],
],
Expand All @@ -30,7 +32,7 @@
'route' => '/application',
'defaults' => [
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'controller' => 'IndexController',
'action' => 'index',
],
],
Expand All @@ -53,8 +55,8 @@
],
],
'controllers' => [
'invokables' => [
'Application\Controller\Index' => Controller\IndexController::class
'factories' => [
Controller\IndexController::class => InvokableFactory::class,
],
],
'view_manager' => [
Expand Down
6 changes: 3 additions & 3 deletions module/Application/view/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>

<!-- Le styles -->
<?php echo $this->headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/img/favicon.ico'))
<?php echo $this->headLink(['rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/img/favicon.ico'])
->prependStylesheet($this->basePath('css/style.css'))
->prependStylesheet($this->basePath('css/bootstrap-theme.min.css'))
->prependStylesheet($this->basePath('css/bootstrap.min.css')) ?>
Expand All @@ -20,8 +20,8 @@
<?php echo $this->headScript()
->prependFile($this->basePath('js/bootstrap.min.js'))
->prependFile($this->basePath('js/jquery.min.js'))
->prependFile($this->basePath('js/respond.min.js'), 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath('js/html5shiv.min.js'), 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath('js/respond.min.js'), 'text/javascript', ['conditional' => 'lt IE 9',])
->prependFile($this->basePath('js/html5shiv.min.js'), 'text/javascript', ['conditional' => 'lt IE 9',])
; ?>

</head>
Expand Down

0 comments on commit bd6d236

Please sign in to comment.