Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3290 by jossnaz
26 Aug 2016, 21:39
i guess should be

Code: Select all  extends \Aimeos\MShop\Plugin\Provider\Factory\Base
  implements \Aimeos\MShop\Plugin\Provider\Factory\Iface


it would be good if someone would have a look at the snippet u guys provide and fix all the things that are outdated.
#3291 by jossnaz
26 Aug 2016, 22:13
on php 7 this throws errors:


Code: Select all    if( $this->singleton === null )
   {
      $config = $this->getItem()->getConfig();


<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> ErrorException: Undefined property: Aimeos\MShop\Plugin\Provider\Order\UsaTaxByState::$singleton in /var/www/html/myapp2/ext/cmc-usa-salestax-by-state/lib/custom/src/MShop/Plugin/Provider/Order/UsaTaxByState.php on line <i>27</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0092</td><td bgcolor='#eeeeec' align='right'>369224</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/var/www/html/myapp2/public/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1040</td><td bgcolor='#eeeeec' align='right'>682144</td><td bgcolor='#eeeeec'>Illuminate\Foundation\Http\Kernel->handle( ??? )</td><td title='/var/www/html/myapp2/public/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>53</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.1040</td><td bgcolor='#eeeeec' align='right'>682144</td><td bgcolor='#eeeeec'>Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php' bgcolor='#eeeeec'>.../Kernel.php<b>:</b>87</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.1370</td><td bgcolor='#eeeeec' align='right'>1454192</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->then( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php' bgcolor='#eeeeec'>.../Kernel.php<b>:</b>122</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.1370</td><td bgcolor='#eeeeec' align='right'>1459440</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.1370</td><td bgcolor='#eeeeec' align='right'>1459440</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.1372</td><td bgcolor='#eeeeec' align='right'>1460904</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.1372</td><td bgcolor='#eeeeec' align='right'>1460936</td><td bgcolor='#eeeeec'>Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.1373</td><td bgcolor='#eeeeec' align='right'>1460936</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php' bgcolor='#eeeeec'>.../CheckForMaintenanceMode.php<b>:</b>44</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.1379</td><td bgcolor='#eeeeec' align='right'>1465840</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>11</td><td bgcolor='#eeeeec' align='center'>0.1379</td><td bgcolor='#eeeeec' align='right'>1465872</td><td bgcolor='#eeeeec'>Illuminate\Cookie\Middleware\EncryptCookies->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>12</td><td bgcolor='#eeeeec' align='center'>0.1385</td><td bgcolor='#eeeeec' align='right'>1467584</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php' bgcolor='#eeeeec'>.../EncryptCookies.php<b>:</b>59</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>13</td><td bgcolor='#eeeeec' align='center'>0.1389</td><td bgcolor='#eeeeec' align='right'>1470848</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>14</td><td bgcolor='#eeeeec' align='center'>0.1389</td><td bgcolor='#eeeeec' align='right'>1470880</td><td bgcolor='#eeeeec'>Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>15</td><td bgcolor='#eeeeec' align='center'>0.1389</td><td bgcolor='#eeeeec' align='right'>1470880</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php' bgcolor='#eeeeec'>.../AddQueuedCookiesToResponse.php<b>:</b>37</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>16</td><td bgcolor='#eeeeec' align='center'>0.1394</td><td bgcolor='#eeeeec' align='right'>1475136</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>17</td><td bgcolor='#eeeeec' align='center'>0.1394</td><td bgcolor='#eeeeec' align='right'>1475168</td><td bgcolor='#eeeeec'>Illuminate\Session\Middleware\StartSession->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>18</td><td bgcolor='#eeeeec' align='center'>0.1406</td><td bgcolor='#eeeeec' align='right'>1577520</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php' bgcolor='#eeeeec'>.../StartSession.php<b>:</b>62</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>19</td><td bgcolor='#eeeeec' align='center'>0.1410</td><td bgcolor='#eeeeec' align='right'>1578984</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>20</td><td bgcolor='#eeeeec' align='center'>0.1410</td><td bgcolor='#eeeeec' align='right'>1579016</td><td bgcolor='#eeeeec'>Illuminate\View\Middleware\ShareErrorsFromSession->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>21</td><td bgcolor='#eeeeec' align='center'>0.1411</td><td bgcolor='#eeeeec' align='right'>1579760</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php' bgcolor='#eeeeec'>.../ShareErrorsFromSession.php<b>:</b>49</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>22</td><td bgcolor='#eeeeec' align='center'>0.1414</td><td bgcolor='#eeeeec' align='right'>1581968</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>23</td><td bgcolor='#eeeeec' align='center'>0.1414</td><td bgcolor='#eeeeec' align='right'>1582000</td><td bgcolor='#eeeeec'>myapp\Http\Middleware\VerifyCsrfToken->handle( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>124</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>24</td><td bgcolor='#eeeeec' align='center'>0.1415</td><td bgcolor='#eeeeec' align='right'>1582032</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/app/Http/Middleware/VerifyCsrfToken.php' bgcolor='#eeeeec'>.../VerifyCsrfToken.php<b>:</b>18</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>25</td><td bgcolor='#eeeeec' align='center'>0.1415</td><td bgcolor='#eeeeec' align='right'>1582032</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>26</td><td bgcolor='#eeeeec' align='center'>0.1415</td><td bgcolor='#eeeeec' align='right'>1582032</td><td bgcolor='#eeeeec'>Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>27</td><td bgcolor='#eeeeec' align='center'>0.1416</td><td bgcolor='#eeeeec' align='right'>1582728</td><td bgcolor='#eeeeec'>Illuminate\Routing\Router->dispatch( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php' bgcolor='#eeeeec'>.../Kernel.php<b>:</b>236</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>28</td><td bgcolor='#eeeeec' align='center'>0.1416</td><td bgcolor='#eeeeec' align='right'>1582768</td><td bgcolor='#eeeeec'>Illuminate\Routing\Router->dispatchToRoute( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>635</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>29</td><td bgcolor='#eeeeec' align='center'>0.1610</td><td bgcolor='#eeeeec' align='right'>1723016</td><td bgcolor='#eeeeec'>Illuminate\Routing\Router->runRouteWithinStack( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>673</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>30</td><td bgcolor='#eeeeec' align='center'>0.1611</td><td bgcolor='#eeeeec' align='right'>1732504</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->then( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>710</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>31</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>32</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>33</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>34</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'>Illuminate\Routing\Router->Illuminate\Routing\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>35</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'>Illuminate\Routing\Route->run( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>708</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>36</td><td bgcolor='#eeeeec' align='center'>0.1612</td><td bgcolor='#eeeeec' align='right'>1733256</td><td bgcolor='#eeeeec'>Illuminate\Routing\Route->runWithCustomDispatcher( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Route.php' bgcolor='#eeeeec'>.../Route.php<b>:</b>134</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>37</td><td bgcolor='#eeeeec' align='center'>0.1615</td><td bgcolor='#eeeeec' align='right'>1735080</td><td bgcolor='#eeeeec'>Illuminate\Routing\ControllerDispatcher->dispatch( ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Route.php' bgcolor='#eeeeec'>.../Route.php<b>:</b>203</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>38</td><td bgcolor='#eeeeec' align='center'>0.1621</td><td bgcolor='#eeeeec' align='right'>1738528</td><td bgcolor='#eeeeec'>Illuminate\Routing\ControllerDispatcher->callWithinStack( ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php' bgcolor='#eeeeec'>.../ControllerDispatcher.php<b>:</b>67</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>39</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1739336</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->then( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php' bgcolor='#eeeeec'>.../ControllerDispatcher.php<b>:</b>114</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>40</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740088</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>41</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740088</td><td bgcolor='#eeeeec'>Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>102</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>42</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740088</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}' target='_new'>call_user_func:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>43</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740088</td><td bgcolor='#eeeeec'>Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}( ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php' bgcolor='#eeeeec'>.../Pipeline.php<b>:</b>139</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>44</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740088</td><td bgcolor='#eeeeec'>Illuminate\Routing\ControllerDispatcher->call( ???, ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php' bgcolor='#eeeeec'>.../ControllerDispatcher.php<b>:</b>112</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>45</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740144</td><td bgcolor='#eeeeec'>Illuminate\Routing\Controller->callAction( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php' bgcolor='#eeeeec'>.../ControllerDispatcher.php<b>:</b>164</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>46</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740520</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:256}' target='_new'>call_user_func_array:{/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:256}</a>
( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Controller.php' bgcolor='#eeeeec'>.../Controller.php<b>:</b>256</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>47</td><td bgcolor='#eeeeec' align='center'>0.1622</td><td bgcolor='#eeeeec' align='right'>1740584</td><td bgcolor='#eeeeec'>Aimeos\Shop\Controller\BasketController->indexAction( )</td><td title='/var/www/html/myapp2/vendor/laravel/framework/src/Illuminate/Routing/Controller.php' bgcolor='#eeeeec'>.../Controller.php<b>:</b>256</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>48</td><td bgcolor='#eeeeec' align='center'>0.1629</td><td bgcolor='#eeeeec' align='right'>1744592</td><td bgcolor='#eeeeec'>Aimeos\Shop\Base\Page->getSections( ??? )</td><td title='/var/www/html/myapp2/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Controller/BasketController.php' bgcolor='#eeeeec'>.../BasketController.php<b>:</b>32</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>49</td><td bgcolor='#eeeeec' align='center'>0.2050</td><td bgcolor='#eeeeec' align='right'>2804352</td><td bgcolor='#eeeeec'>Aimeos\Client\Html\Basket\Standard\Standard->process( )</td><td title='/var/www/html/myapp2/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Base/Page.php' bgcolor='#eeeeec'>.../Page.php<b>:</b>83</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>50</td><td bgcolor='#eeeeec' align='center'>0.2059</td><td bgcolor='#eeeeec' align='right'>2804728</td><td bgcolor='#eeeeec'>Aimeos\Client\Html\Basket\Standard\Standard->addProducts( ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-client-html/client/html/src/Client/Html/Basket/Standard/Standard.php' bgcolor='#eeeeec'>.../Standard.php<b>:</b>347</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>51</td><td bgcolor='#eeeeec' align='center'>0.2278</td><td bgcolor='#eeeeec' align='right'>3515208</td><td bgcolor='#eeeeec'>Aimeos\Client\Html\Basket\Standard\Standard->addProduct( ???, ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-client-html/client/html/src/Client/Html/Basket/Standard/Standard.php' bgcolor='#eeeeec'>.../Standard.php<b>:</b>479</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>52</td><td bgcolor='#eeeeec' align='center'>0.2278</td><td bgcolor='#eeeeec' align='right'>3515208</td><td bgcolor='#eeeeec'>Aimeos\Controller\Frontend\Basket\Decorator\Category->addProduct( ???, ???, ???, ???, ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-client-html/client/html/src/Client/Html/Basket/Standard/Standard.php' bgcolor='#eeeeec'>.../Standard.php<b>:</b>501</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>53</td><td bgcolor='#eeeeec' align='center'>0.2402</td><td bgcolor='#eeeeec' align='right'>3655832</td><td bgcolor='#eeeeec'>Aimeos\Controller\Frontend\Basket\Standard->addProduct( ???, ???, ???, ???, ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Decorator/Category.php' bgcolor='#eeeeec'>.../Category.php<b>:</b>66</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>54</td><td bgcolor='#eeeeec' align='center'>0.3053</td><td bgcolor='#eeeeec' align='right'>4133864</td><td bgcolor='#eeeeec'>Aimeos\Controller\Frontend\Basket\Standard->addProductInStock( ???, ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Standard.php' bgcolor='#eeeeec'>.../Standard.php<b>:</b>126</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>55</td><td bgcolor='#eeeeec' align='center'>0.3082</td><td bgcolor='#eeeeec' align='right'>4140104</td><td bgcolor='#eeeeec'>Aimeos\MShop\Order\Item\Base\Base->addProduct( ???, ??? )</td><td title='/var/www/html/myapp2/ext/ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Standard.php' bgcolor='#eeeeec'>.../Standard.php<b>:</b>425</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>56</td><td bgcolor='#eeeeec' align='center'>0.3084</td><td bgcolor='#eeeeec' align='right'>4141816</td><td bgcolor='#eeeeec'>Aimeos\MW\Observer\Publisher\Base->notifyListeners( ???, ??? )</td><td title='/var/www/html/myapp2/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Order/Item/Base/Base.php' bgcolor='#eeeeec'>.../Base.php<b>:</b>211</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>57</td><td bgcolor='#eeeeec' align='center'>0.3085</td><td bgcolor='#eeeeec' align='right'>4141816</td><td bgcolor='#eeeeec'>Aimeos\MShop\Plugin\Provider\Order\UsaTaxByState->update( ???, ???, ??? )</td><td title='/var/www/html/myapp2/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Observer/Publisher/Base.php' bgcolor='#eeeeec'>.../Base.php<b>:</b>71</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>58</td><td bgcolor='#eeeeec' align='center'>3.4816</td><td bgcolor='#eeeeec' align='right'>4151912</td><td bgcolor='#eeeeec'>Illuminate\Foundation\Bootstrap\HandleExceptions->handleError( ???, ???, ???, ???, ??? )</td><td title='/var/www/html/myapp2/ext/cmc-usa-salestax-by-state/lib/custom/src/MShop/Plugin/Provider/Order/UsaTaxByState.php' bgcolor='#eeeeec'>.../UsaTaxByState.php<b>:</b>27</td></tr>


even

Code: Select allif(null  === $this->singleton)


throws actually an error for me...

Code: Select all    if( !isset($this->singleton)  )


seems to work

now the next line directly throws a new error

Code: Select all$config = $this->getItem()->getConfig();

Call to undefined method Aimeos\MShop\Plugin\Provider\Order\UsaTaxByState::getItem()
#3293 by aimeos
27 Aug 2016, 09:59
In the docs, "singleton" was not explicitly defined in the skeleton example.
Regarding the getValue(), please use this instead:
Code: Select all$value = $this->getConfigValue( 'key', 'default' );


We've updated the documentation accordingly. Thanks for the hints!