Override oxcmp_basket and add new method

Hi!
I have qestion… can i override oxcmp_basket in module and add new method?

When i try do this:
‘extend’ => array(
\OxidEsales\Eshop\Application\Component\BasketComponent::class => \myvendor\modulename\Application\Component\BasketComponent::class,
),
OXID throw: “message Function ‘xxxxx’ does not exist or is not accessible!”

Only way to do this is add method to basket model?

Thanks.

Yes it´s possbile

so maybe any hint? what am i doing wrong?

Have a look here: https://github.com/OXID-eSales/paypal/blob/v5.1.6/metadata.php#L44

heh it’s weird… i have the same implementation. namespace are in autoload tag too… :frowning: i will still looking for bug.