Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2019-07-03 13:05:43 +02:00
parent 6d5f3e4e87
commit 107aac3767

View File

@@ -145,7 +145,7 @@
'download',
],
],</code></pre>
<p>As you can in the example, you can assign required user roles and permissions for each route.</p>
<p>As you can see in the example, you can assign required user roles and permissions for each route.</p>
<h2 id="controllers">Controllers</h2>
<p>Since FileGator is using an awesome dependency injection <a href="https://github.com/PHP-DI/PHP-DI">container</a> you can type-hint dependencies directly in your controllers. </p>
<p>You can also mix route parameters and dependencies in any order like in this example:</p>