Skip to content

Commit

Permalink
Merge pull request #52 from johannschopplich/v4-compat
Browse files Browse the repository at this point in the history
Support Kirby v4
  • Loading branch information
bastianallgeier authored Nov 3, 2023
2 parents 1071799 + d08985b commit fc9fe76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions extensions/aliases.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php

class_alias('Kirby\Kql\Kql', 'Kql');
class_alias('Kirby\Kql\Interceptor', 'Kirby\Kql\Interceptors\Interceptor');
class_alias(\Kirby\Kql\Kql::class, 'Kql');
class_alias(\Kirby\Kql\Interceptor::class, 'Kirby\Kql\Interceptors\Interceptor');

// Provide backwards compatibility for Kirby 3 core classes
class_alias(\Kirby\Kql\Interceptors\Content\Content::class, 'Kirby\Kql\Interceptors\Cms\Content');
class_alias(\Kirby\Kql\Interceptors\Content\Field::class, 'Kirby\Kql\Interceptors\Cms\Field');
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Kirby\Kql\Interceptors\Cms;
namespace Kirby\Kql\Interceptors\Content;

use Kirby\Kql\Interceptor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Kirby\Kql\Interceptors\Cms;
namespace Kirby\Kql\Interceptors\Content;

use Kirby\Kql\Interceptor;

Expand Down

0 comments on commit fc9fe76

Please sign in to comment.