File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616use Exception ;
1717use Pimcore \Document ;
18- use Pimcore \Document \Adapter ;
18+ use Pimcore \Document \AdapterInterface ;
1919
2020/**
2121 * @internal
@@ -25,7 +25,7 @@ final class DocumentResolver implements DocumentResolverInterface
2525 /**
2626 * @throws Exception
2727 */
28- public function getInstance (?string $ adapter = null ): ?Adapter
28+ public function getInstance (?string $ adapter = null ): ?AdapterInterface
2929 {
3030 return Document::getInstance ($ adapter );
3131 }
@@ -40,7 +40,7 @@ public function isFileTypeSupported(string $filetype): bool
4040 return Document::isFileTypeSupported ($ filetype );
4141 }
4242
43- public function getDefaultAdapter (): ?Adapter
43+ public function getDefaultAdapter (): ?AdapterInterface
4444 {
4545 return Document::getDefaultAdapter ();
4646 }
Original file line number Diff line number Diff line change 1414namespace Pimcore \Bundle \StaticResolverBundle \Lib ;
1515
1616use Exception ;
17- use Pimcore \Document \Adapter ;
17+ use Pimcore \Document \AdapterInterface ;
1818
1919/**
2020 * @internal
@@ -24,11 +24,11 @@ interface DocumentResolverInterface
2424 /**
2525 * @throws Exception
2626 */
27- public function getInstance (?string $ adapter = null ): ?Adapter ;
27+ public function getInstance (?string $ adapter = null ): ?AdapterInterface ;
2828
2929 public function isAvailable (): bool ;
3030
3131 public function isFileTypeSupported (string $ filetype ): bool ;
3232
33- public function getDefaultAdapter (): ?Adapter ;
33+ public function getDefaultAdapter (): ?AdapterInterface ;
3434}
Original file line number Diff line number Diff line change 1515
1616use Exception ;
1717use Pimcore \Video ;
18- use Pimcore \Video \Adapter ;
18+ use Pimcore \Video \AdapterInterface ;
1919
2020/**
2121 * @internal
@@ -25,7 +25,7 @@ final class VideoResolver implements VideoResolverInterface
2525 /**
2626 * @throws Exception
2727 */
28- public function getInstance (): ?Adapter
28+ public function getInstance (): ?AdapterInterface
2929 {
3030 return Video::getInstance ();
3131 }
Original file line number Diff line number Diff line change 1414namespace Pimcore \Bundle \StaticResolverBundle \Lib ;
1515
1616use Exception ;
17- use Pimcore \Video \Adapter ;
17+ use Pimcore \Video \AdapterInterface ;
1818
1919/**
2020 * @internal
@@ -24,7 +24,7 @@ interface VideoResolverInterface
2424 /**
2525 * @throws Exception
2626 */
27- public function getInstance (): ?Adapter ;
27+ public function getInstance (): ?AdapterInterface ;
2828
2929 public function isAvailable (): bool ;
3030}
You can’t perform that action at this time.
0 commit comments