@@ -150,7 +150,7 @@ |
||
| 150 | 150 | * Sets the view object that will generate the admin output. |
| 151 | 151 | * |
| 152 | 152 | * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output |
| 153 | - * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
|
| 153 | + * @return Base Reference to this object for fluent calls |
|
| 154 | 154 | */ |
| 155 | 155 | public function setView( \Aimeos\MW\View\Iface $view ) |
| 156 | 156 | { |
@@ -31,8 +31,6 @@ |
||
| 31 | 31 | * Initializes the client |
| 32 | 32 | * |
| 33 | 33 | * @param \Aimeos\MShop\Context\Item\Iface $context MShop context object |
| 34 | - * @param \Aimeos\MW\View\Iface $view View object |
|
| 35 | - * @param array $templatePaths List of file system paths where the templates are stored |
|
| 36 | 34 | * @param string $path Name of the client, e.g "basket/address" |
| 37 | 35 | */ |
| 38 | 36 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context, $path ) |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | * Sets the view object that will generate the admin output. |
| 155 | 155 | * |
| 156 | 156 | * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output |
| 157 | - * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
|
| 157 | + * @return Base Reference to this object for fluent calls |
|
| 158 | 158 | */ |
| 159 | 159 | public function setView( \Aimeos\MW\View\Iface $view ) |
| 160 | 160 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Adds the decorators to the JSON API client object |
| 42 | 42 | * |
| 43 | - * @param \Aimeos\Client\JsonApi\Common\Iface $client Client object |
|
| 43 | + * @param \Aimeos\Client\JsonApi\Iface $client Client object |
|
| 44 | 44 | * @param \Aimeos\MShop\Context\Item\Iface $context Context instance with necessary objects |
| 45 | 45 | * @param string $path Name of the client, e.g "product" |
| 46 | 46 | * @return \Aimeos\Client\JsonApi\Iface Client object |
@@ -99,8 +99,7 @@ |
||
| 99 | 99 | $decorators = $config->get( 'client/jsonapi/' . $dpath . 'decorators/local', [] ); |
| 100 | 100 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
| 101 | 101 | } |
| 102 | - } |
|
| 103 | - else |
|
| 102 | + } else |
|
| 104 | 103 | { |
| 105 | 104 | $classprefix = '\\Aimeos\\Client\\JsonApi\\Common\\Decorator\\'; |
| 106 | 105 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
@@ -123,6 +123,9 @@ |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $name |
|
| 128 | + */ |
|
| 126 | 129 | protected function access( $name ) |
| 127 | 130 | { |
| 128 | 131 | $class = new \ReflectionClass( '\Aimeos\Client\JsonApi\Common\Factory\Base' ); |
@@ -131,8 +131,7 @@ |
||
| 131 | 131 | if( ( $client = @call_user_func_array( array( $factory, 'createClient' ), $args ) ) === false ) { |
| 132 | 132 | throw new \Aimeos\Client\JsonApi\Exception( sprintf( 'Invalid factory "%1$s"', $factory ), 400 ); |
| 133 | 133 | } |
| 134 | - } |
|
| 135 | - else |
|
| 134 | + } else |
|
| 136 | 135 | { |
| 137 | 136 | $client = self::createClientRoot( $context, $path, $name ); |
| 138 | 137 | } |