Skip to content

Commit

Permalink
Add missing pathExists method to AssetServiceResolver.php (#56)
Browse files Browse the repository at this point in the history
* add missing pathExists method to AssetServiceResolver.php

* Apply php-cs-fixer changes

---------

Co-authored-by: lukmzig <lukmzig@users.noreply.github.com>
  • Loading branch information
lukmzig and lukmzig authored Jul 4, 2024
1 parent 4b21aba commit d39d764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Models/Asset/AssetServiceResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ public function createFolderByPath(string $path, array $options = []): Folder
{
return Service::createFolderByPath($path, $options);
}

public function pathExists(string $path, string $type = null): bool
{
return Service::pathExists($path, $type);
}
}
2 changes: 2 additions & 0 deletions src/Models/Asset/AssetServiceResolverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@
interface AssetServiceResolverInterface
{
public function createFolderByPath(string $path, array $options = []): Folder;

public function pathExists(string $path, string $type = null): bool;
}

0 comments on commit d39d764

Please sign in to comment.