Browse Source

minor code cleanup

Keith Newman 9 years ago
parent
commit
7b04e0fdcd

+ 1 - 1
frameworks/PHP/slim/index.php

@@ -7,7 +7,7 @@ $app = new \Slim\App;
 $container = $app->getContainer();
 $container['db'] = function ($c) {
   $db = $c['settings']['db'];
-  $pdo = new PDO('mysql:host=127.0.0.1;dbname=hello_world', 'benchmarkdbuser', 'benchmarkdbpass');
+  $pdo = new PDO('mysql:host=localhost;dbname=hello_world', 'benchmarkdbuser', 'benchmarkdbpass');
   $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
   $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
   return $pdo;

+ 0 - 7
frameworks/PHP/zend/module/FrameworkBenchmarks/src/FrameworkBenchmarks/Controller/BenchController.php

@@ -29,11 +29,6 @@ class BenchController extends AbstractActionController
         $this->tableGateway = $tableGateway;
     }
 
-    public function indexAction()
-    {
-      return array('message' => 'test123');
-    }
-
     public function jsonAction()
     {
         return new JsonModel(array('message' => 'Hello, World!'));
@@ -103,7 +98,5 @@ class BenchController extends AbstractActionController
       $response->getHeaders()->addHeaders(array('COntent-Type' => 'text/plain'));
       $response->setContent('Hello, World!');
       return $response;
-      // echo "Hello, World!";
-      // return;
     }
 }