File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Framework \App \AreaList as AreaList ;
11
11
use Magento \Framework \App \State as State ;
12
12
13
- class AbstractApp implements AppInterface
13
+ abstract class AbstractApp implements AppInterface
14
14
{
15
15
public function __construct (
16
16
\Magento \Framework \ObjectManagerInterface $ objectManager ,
@@ -36,9 +36,12 @@ public function __construct(
36
36
37
37
public function launch ()
38
38
{
39
+ $ this ->run ();
39
40
return $ this ->_response ;
40
41
}
41
42
43
+ abstract public function run ();
44
+
42
45
public function catchException (\Magento \Framework \App \Bootstrap $ bootstrap , \Exception $ exception )
43
46
{
44
47
return false ;
Original file line number Diff line number Diff line change 6
6
class CreateCategoriesApp extends AbstractApp
7
7
{
8
8
9
- public function launch ()
9
+ public function run ()
10
10
{
11
11
$ this ->_objectManager ->get ('Magento\Framework\Registry ' )
12
12
->register ('isSecureArea ' , true );
13
13
14
- for ($ i =0 ; $ i <200 ; ++$ i ) {
14
+ for ($ i =0 ; $ i <2500 ; ++$ i ) {
15
15
$ newCategoryName = 'Performance Category ' .$ i ;
16
16
17
17
/** @var Magento\Catalog\Model\Category\Interceptor $newCategory */
@@ -35,8 +35,6 @@ public function launch()
35
35
echo "Deleting \t" . $ newCategoryName . PHP_EOL ;
36
36
}
37
37
}
38
-
39
- return parent ::launch ();
40
38
}
41
39
}
42
40
You can’t perform that action at this time.
0 commit comments