This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +3
-6
lines changed Expand file tree Collapse file tree 5 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static function factory($options = [])
61
61
if ($ options instanceof Traversable) {
62
62
$ options = ArrayUtils::iteratorToArray ($ options );
63
63
}
64
-
64
+
65
65
if (! is_array ($ options )) {
66
66
throw new Exception \InvalidArgumentException (__METHOD__ . ' expects an array or Traversable set of options ' );
67
67
}
Original file line number Diff line number Diff line change @@ -263,15 +263,15 @@ protected function routeFromArray($specs)
263
263
if ($ specs instanceof Traversable) {
264
264
$ specs = ArrayUtils::iteratorToArray ($ specs );
265
265
}
266
-
266
+
267
267
if (! is_array ($ specs )) {
268
268
throw new Exception \InvalidArgumentException ('Route definition must be an array or Traversable object ' );
269
269
}
270
270
271
271
if (! isset ($ specs ['type ' ])) {
272
272
throw new Exception \InvalidArgumentException ('Missing "type" option ' );
273
273
}
274
-
274
+
275
275
if (! isset ($ specs ['options ' ])) {
276
276
$ specs ['options ' ] = [];
277
277
}
Original file line number Diff line number Diff line change 18
18
use Zend \ModuleManager \Listener \ServiceListener ;
19
19
use Zend \ModuleManager \ModuleManager ;
20
20
use Zend \ServiceManager \Config ;
21
- use Zend \ServiceManager \Factory \InvokableFactory ;
22
21
use Zend \ServiceManager \ServiceLocatorAwareInterface ;
23
22
use Zend \ServiceManager \ServiceManager ;
24
23
use Zend \ServiceManager \ServiceManagerAwareInterface ;
Original file line number Diff line number Diff line change 14
14
use Zend \Mvc \Router \RouteMatch ;
15
15
use Zend \ServiceManager \ConfigInterface ;
16
16
use Zend \ServiceManager \Exception \ServiceNotCreatedException ;
17
- use Zend \Stdlib \ArrayUtils ;
18
17
use Zend \View \Helper as ViewHelper ;
19
18
use Zend \View \HelperPluginManager ;
20
19
Original file line number Diff line number Diff line change 23
23
use Zend \Mvc \Service \ServiceManagerConfig ;
24
24
use Zend \Mvc \View \Console \ViewManager ;
25
25
use Zend \ServiceManager \ServiceManager ;
26
- use Zend \Stdlib \ArrayUtils ;
27
26
28
27
/**
29
28
* Tests for {@see \Zend\Mvc\View\Console\ViewManager}
You can’t perform that action at this time.
0 commit comments