Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kirby v4 #52

Merged
merged 10 commits into from
Nov 3, 2023
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
Loading