Loading app/Config/Database.php +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ class Database extends Config 'port' => 3306, 'foreignKeys' => true, 'busyTimeout' => 1000, 'synchronous' => null, 'dateFormat' => [ 'date' => 'Y-m-d', 'datetime' => 'Y-m-d H:i:s', Loading app/Config/Paths.php +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ namespace Config; * more. * * All paths are relative to the project's root folder. * * NOTE: This class is required prior to Autoloader instantiation, * and does not extend BaseConfig. */ class Paths Loading app/Controllers/BaseController.php +6 −1 Original line number Diff line number Diff line Loading @@ -54,11 +54,16 @@ abstract class BaseController extends Controller ResponseInterface $response, LoggerInterface $logger ): void { // Load here all helpers you want to be available in your controllers that extend BaseController. // Caution: Do not put the this below the parent::initController() call below. $this->helpers = [...$this->helpers, 'svg', 'components', 'misc', 'seo', 'premium_podcasts']; // Do Not Edit This Line // Caution: Do not edit this line. parent::initController($request, $response, $logger); // Preload any models, libraries, etc, here. // $this->session = service('session'); Theme::setTheme('app'); } } app/Controllers/MapController.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ class MapController extends BaseController if (! ($found = cache($cacheName))) { $episodes = (new EpisodeModel()) ->where('`published_at` <= UTC_TIMESTAMP()', null, false) ->where('location_geo is not', null) ->where('location_geo is not') ->findAll(); $found = []; foreach ($episodes as $episode) { Loading app/Entities/Actor.php +0 −5 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ namespace App\Entities; use App\Models\PodcastModel; use Modules\Fediverse\Entities\Actor as FediverseActor; use RuntimeException; /** * @property Podcast|null $podcast Loading @@ -31,10 +30,6 @@ class Actor extends FediverseActor public function getPodcast(): ?Podcast { if ($this->id === null) { throw new RuntimeException('Podcast id must be set before getting associated podcast.'); } if (! $this->podcast instanceof Podcast) { $this->podcast = (new PodcastModel())->getPodcastByActorId($this->id); } Loading Loading
app/Config/Database.php +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ class Database extends Config 'port' => 3306, 'foreignKeys' => true, 'busyTimeout' => 1000, 'synchronous' => null, 'dateFormat' => [ 'date' => 'Y-m-d', 'datetime' => 'Y-m-d H:i:s', Loading
app/Config/Paths.php +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ namespace Config; * more. * * All paths are relative to the project's root folder. * * NOTE: This class is required prior to Autoloader instantiation, * and does not extend BaseConfig. */ class Paths Loading
app/Controllers/BaseController.php +6 −1 Original line number Diff line number Diff line Loading @@ -54,11 +54,16 @@ abstract class BaseController extends Controller ResponseInterface $response, LoggerInterface $logger ): void { // Load here all helpers you want to be available in your controllers that extend BaseController. // Caution: Do not put the this below the parent::initController() call below. $this->helpers = [...$this->helpers, 'svg', 'components', 'misc', 'seo', 'premium_podcasts']; // Do Not Edit This Line // Caution: Do not edit this line. parent::initController($request, $response, $logger); // Preload any models, libraries, etc, here. // $this->session = service('session'); Theme::setTheme('app'); } }
app/Controllers/MapController.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ class MapController extends BaseController if (! ($found = cache($cacheName))) { $episodes = (new EpisodeModel()) ->where('`published_at` <= UTC_TIMESTAMP()', null, false) ->where('location_geo is not', null) ->where('location_geo is not') ->findAll(); $found = []; foreach ($episodes as $episode) { Loading
app/Entities/Actor.php +0 −5 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ namespace App\Entities; use App\Models\PodcastModel; use Modules\Fediverse\Entities\Actor as FediverseActor; use RuntimeException; /** * @property Podcast|null $podcast Loading @@ -31,10 +30,6 @@ class Actor extends FediverseActor public function getPodcast(): ?Podcast { if ($this->id === null) { throw new RuntimeException('Podcast id must be set before getting associated podcast.'); } if (! $this->podcast instanceof Podcast) { $this->podcast = (new PodcastModel())->getPodcastByActorId($this->id); } Loading