F
F
freelion932019-07-31 15:00:30
PHP
freelion93, 2019-07-31 15:00:30

How to access a method in another class and namespace?

It is required to access the getStorage function which returns the cache of the current user
https://github.com/nextcloud/server/blob/master/li... tell me
how to correctly access this method

namespace OC\Cache;
use OC\Files\Filesystem;

$userStorage = \OC::$Files->get_storage();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question