Browse Source

Simplify Table factory init.

Robert Pustułka 8 years ago
parent
commit
3e74680ef6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Console/Shell.php

+ 1 - 2
src/Console/Shell.php

@@ -185,8 +185,7 @@ class Shell
         }
         $this->_io = $io ?: new ConsoleIo();
 
-        $locator = $this->getTableLocator() ? : TableLocator::getInstance();
-        $this->modelFactory('Table', [$locator, 'get']);
+        $this->modelFactory('Table', [$this->getTableLocator(), 'get']);
         $this->Tasks = new TaskRegistry($this);
 
         $this->_mergeVars(