Kirby 3: Class 'Asset' not found

Hello

I am blissed about the release of Kirby 3 and started to update previous installations according to the neat instruction.

Unfortunately one site raised the error in the title by this line:

(new Asset(“assets/images/arrow-{$directionPrev}.svg”))->content()

Any hints how I can proceed to locate the issue?

Many thanks in advance,
dpac

The Asset class has been removed, see this thread: How to create file object form assets folder?

Dear Texnixe and all:

Many thanks for clarification and for the incredible fast reply!

dpac

Hello

I am still entangled in some guesswork about how I can actually display the image now, eg. how the

->content()

listed above can now be actualized?

I am also in doubt whether this omission of the “Asset” class is only temporary and owed to the highly appreciated fresh status of Kirby 3 – or if the omission is intended and permanent?

Thanks in advance for your kind support!

dpac

Finally …

$image->read();

…does the job :-).

dpac