@@ 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 |
@@ 77-87 (lines=11) @@ | ||
74 | /** |
|
75 | * {@inheritdoc} |
|
76 | */ |
|
77 | public function get($name) |
|
78 | { |
|
79 | if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') { |
|
80 | if ($name == 'pluginlogger') { |
|
81 | $name = 'log'; |
|
82 | } |
|
83 | $name = ucfirst($name); |
|
84 | return Shopware()->Bootstrap()->getResource($name); |
|
85 | } |
|
86 | return parent::get($name); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Index action method. |