Skip to content

Problem in Cms\Classes\Theme::getDatasource() #855

@webmaxx

Description

@webmaxx

Winter CMS Build

dev-develop

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

Wintercms.Pages, Wintercms.Sitemap, Wintercms.Notify, Wintercms.Redirect

Issue description

/**
 * Get the theme's datasource
 */
public function getDatasource(): AutoDatasource
{
    $resolver = App::make('halcyon');
    return $resolver->datasource($this->getDirName());
}

Cms\Classes\Theme::getDatasource(): Return value must be of type Cms\Classes\AutoDatasource, Winter\Storm\Halcyon\Datasource\FileDatasource returned

Steps to replicate

  1. Create new theme in console artisan create:theme example
  2. Activate new theme in backend (and DO NOT change anything in "Customize theme" or click on the button "Reset to default")
  3. Go to main page

Workaround

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions