aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormarwolaethblack <a.unal677@gmail.com>2017-11-30 12:34:56 +0100
committermarwolaethblack <a.unal677@gmail.com>2017-11-30 12:34:56 +0100
commit373010be532616b89f4c3e9fef0a972f7cf539f5 (patch)
tree168bab4a90f5e3c90434101bd4d482bb6eb0c129 /app
parentf7e9434a00b9001d16a28f3aaab4d4b0696dc12c (diff)
aqi
Diffstat (limited to 'app')
-rw-r--r--app/Resources/views/default/index.html.twig2
-rw-r--r--app/config/services.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/app/Resources/views/default/index.html.twig b/app/Resources/views/default/index.html.twig
index 1ec4bd6..2fc12a2 100644
--- a/app/Resources/views/default/index.html.twig
+++ b/app/Resources/views/default/index.html.twig
@@ -17,7 +17,7 @@
</tr>
</table>
</div>
- <p id="aq"></p>
+ <p id="aq">{{ Aqi }}</p>
<img src="https://www.ourair.org/wp-content/uploads/AQItable.gif">
{% endblock %}
{% block javascripts %}
diff --git a/app/config/services.yml b/app/config/services.yml
index cdb1c65..7ddee7c 100644
--- a/app/config/services.yml
+++ b/app/config/services.yml
@@ -29,6 +29,9 @@ services:
public: true
tags: ['controller.service_arguments']
+ AppBundle\Utils\Aqi:
+ public: false
+
# add more services, or override services that need manual wiring
# AppBundle\Service\ExampleService:
# arguments: