@@ 47-57 (lines=11) @@ | ||
44 | /** |
|
45 | * {@inheritdoc} |
|
46 | */ |
|
47 | public function get($name) |
|
48 | { |
|
49 | if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') { |
|
50 | if ($name == 'pluginlogger') { |
|
51 | $name = 'log'; |
|
52 | } |
|
53 | $name = ucfirst($name); |
|
54 | return Shopware()->Bootstrap()->getResource($name); |
|
55 | } |
|
56 | return parent::get($name); |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @return \Doctrine\ORM\Query |
@@ 75-85 (lines=11) @@ | ||
72 | /** |
|
73 | * {@inheritdoc} |
|
74 | */ |
|
75 | public function get($name) |
|
76 | { |
|
77 | if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') { |
|
78 | if ($name == 'pluginlogger') { |
|
79 | $name = 'log'; |
|
80 | } |
|
81 | $name = ucfirst($name); |
|
82 | return Shopware()->Bootstrap()->getResource($name); |
|
83 | } |
|
84 | return parent::get($name); |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * Index action method. |