diff options
-rw-r--r-- | Vagrantfile | 6 | ||||
-rw-r--r-- | app/Controller/Base.php | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile index 46312e3a..89d950ee 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -90,6 +90,12 @@ Vagrant.configure("2") do |config| m.vm.synced_folder ".", "/var/www", owner: "www-data", group: "www-data" end + config.vm.define "debian6" do |m| + m.vm.box = "chef/debian-6.0.10" + m.vm.provision "shell", inline: $script_sqlite + m.vm.synced_folder ".", "/var/www", owner: "www-data", group: "www-data" + end + config.vm.define "centos7" do |m| m.vm.box = "chef/centos-7.0" m.vm.synced_folder ".", "/var/www/html", owner: "apache", group: "apache" diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 548fdb40..d949048d 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -119,7 +119,7 @@ abstract class Base } $this->container['logger']->debug('SQL_QUERIES={nb}', array('nb' => $this->container['db']->nb_queries)); - $this->container['logger']->debug('RENDERING={time}', array('time' => microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'])); + $this->container['logger']->debug('RENDERING={time}', array('time' => microtime(true) - @$_SERVER['REQUEST_TIME_FLOAT'])); } } |