1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(entries): use ensureExists for entries dir on init

This commit is contained in:
Awilum
2022-05-02 22:16:01 +03:00
parent 31ede930e5
commit 19772c6d9a

View File

@@ -76,6 +76,8 @@ class Entries
*/
public function __construct($options = null, $registry = null)
{
filesystem()->directory(PATH['project'] . registry()->get('flextype.settings.entries.directory'))->ensureExists(0755, true);
$this->setRegistry($registry);
$this->setOptions($options);
$this->loadCollectionsEvents();