remove usage of getenv from codebase (#1861)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
{% import "doctor/actions.html.twig" as actions %}
|
||||
|
||||
{% block page_title %}{{ 'menu.doctor'|trans }}{% endblock %}
|
||||
{% block page_subtitle %}Environment: <strong>{{ environment }}</strong>{% endblock %}
|
||||
{% block page_actions %}{{ actions.doctor('index') }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
@@ -101,8 +102,9 @@
|
||||
|
||||
{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %}
|
||||
{% block box_title %}Composer packages{% endblock %}
|
||||
{% block box_body_class %}no-padding{% endblock %}
|
||||
{% block box_body %}
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
{% for name, value in composer %}
|
||||
<tr>
|
||||
<th style="width:15%">{{ name }}</th>
|
||||
@@ -113,24 +115,11 @@
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
||||
{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %}
|
||||
{% block box_title %}Environment variables{% endblock %}
|
||||
{% block box_body %}
|
||||
<table class="table">
|
||||
{% for name, value in dotenv %}
|
||||
<tr>
|
||||
<th style="width:15%">{{ name }}</th>
|
||||
<td>{{ value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
||||
{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %}
|
||||
{% block box_title %}PHP{% endblock %}
|
||||
{% block box_body_class %}no-padding{% endblock %}
|
||||
{% block box_body %}
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th style="width:15%">Version</th>
|
||||
<td>{{ constant('PHP_VERSION') }}</td>
|
||||
@@ -157,8 +146,9 @@
|
||||
|
||||
{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %}
|
||||
{% block box_title %}Server{% endblock %}
|
||||
{% block box_body_class %}no-padding{% endblock %}
|
||||
{% block box_body %}
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
{% for name, value in info %}
|
||||
<tr>
|
||||
<th style="width:15%">{{ name }}</th>
|
||||
|
||||
Reference in New Issue
Block a user