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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user