Skip to content

EspoCRM – Open Source CRM Application

Deprecation removals

Yuriieb450490070c
diff --git a/application/Espo/Core/Console/Commands/Base.php b/application/Espo/Core/Console/Commands/Base.php
deleted file mode 100644
index 337cb7b86c..0000000000
--- a/application/Espo/Core/Console/Commands/Base.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Console\Commands;
-
-use Espo\Core\Container;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- */
-abstract class Base
-{
- private Container $container;
-
- public function __construct(Container $container)
- {
- $this->container = $container;
- }
-
- protected function getContainer(): Container
- {
- return $this->container;
- }
-}
diff --git a/application/Espo/Core/Console/Commands/Command.php b/application/Espo/Core/Console/Commands/Command.php
deleted file mode 100644
index 4631fc66f2..0000000000
--- a/application/Espo/Core/Console/Commands/Command.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Console\Commands;
-
-/**
- * @deprecated
- */
-interface Command
-{}
diff --git a/application/Espo/Core/EntryPoint/Traits/NotStrictAuth.php b/application/Espo/Core/EntryPoint/Traits/NotStrictAuth.php
deleted file mode 100644
index b821083b4b..0000000000
--- a/application/Espo/Core/EntryPoint/Traits/NotStrictAuth.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\EntryPoint\Traits;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- * @phpstan-ignore-next-line
- */
-trait NotStrictAuth
-{
- /**
- * @var bool
- */
- public static $notStrictAuth = true;
-}
diff --git a/application/Espo/Core/EntryPoints/Base.php b/application/Espo/Core/EntryPoints/Base.php
deleted file mode 100644
index 075b678c15..0000000000
--- a/application/Espo/Core/EntryPoints/Base.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\EntryPoints;
-
-use Espo\Core\Container;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- */
-abstract class Base
-{
- /**
- * @var bool
- */
- public static $authRequired = true;
-
- /**
- * @var bool
- */
- public static $notStrictAuth = false;
-
- private $container; /** @phpstan-ignore-line */
-
- public function __construct(Container $container)
- {
- $this->container = $container;
- }
-
- protected function getContainer() /** @phpstan-ignore-line */
- {
- return $this->container;
- }
-
- protected function getUser() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('user');
- }
-
- protected function getAcl() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('acl');
- }
-
- protected function getEntityManager() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('entityManager');
- }
-
- protected function getServiceFactory() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('serviceFactory');
- }
-
- protected function getConfig() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('config');
- }
-
- protected function getMetadata() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('metadata');
- }
-
- protected function getDateTime() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('dateTime');
- }
-
- protected function getNumber() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('number');
- }
-
- protected function getFileManager() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('fileManager');
- }
-
- protected function getLanguage() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('language');
- }
-
- protected function getClientManager() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('clientManager');
- }
-}
diff --git a/application/Espo/Core/EntryPoints/EntryPoint.php b/application/Espo/Core/EntryPoints/EntryPoint.php
deleted file mode 100644
index ed289846d8..0000000000
--- a/application/Espo/Core/EntryPoints/EntryPoint.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\EntryPoints;
-
-use Espo\Core\EntryPoint\EntryPoint as EntryPointBase;
-
-/**
- * @deprecated For backward compatibility.
- */
-interface EntryPoint extends EntryPointBase
-{
-
-}
diff --git a/application/Espo/Core/EntryPoints/NoAuth.php b/application/Espo/Core/EntryPoints/NoAuth.php
deleted file mode 100644
index ce7c169642..0000000000
--- a/application/Espo/Core/EntryPoints/NoAuth.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\EntryPoints;
-
-/**
- * @deprecated Use `Espo\Core\EntryPoint\Traits\NoAuth` instead.
- * @todo Remove in v10.0.
- * @phpstan-ignore-next-line
- */
-trait NoAuth
-{
- use \Espo\Core\EntryPoint\Traits\NoAuth;
-}
diff --git a/application/Espo/Core/EntryPoints/NotStrictAuth.php b/application/Espo/Core/EntryPoints/NotStrictAuth.php
deleted file mode 100644
index 22af37cede..0000000000
--- a/application/Espo/Core/EntryPoints/NotStrictAuth.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\EntryPoints;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- * @phpstan-ignore-next-line
- */
-trait NotStrictAuth
-{
- use \Espo\Core\EntryPoint\Traits\NotStrictAuth;
-}
diff --git a/application/Espo/Core/Field/Date.php b/application/Espo/Core/Field/Date.php
index 211e2a3f6c..31572e1480 100644
--- a/application/Espo/Core/Field/Date.php
+++ b/application/Espo/Core/Field/Date.php
@@ -283,7 +283,7 @@ class Date implements DateTimeable
/**
* @deprecated As of v8.1. Use `toString` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getString(): string
{
@@ -292,7 +292,7 @@ class Date implements DateTimeable
/**
* @deprecated As of v8.1. Use `toDateTime` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getDateTime(): DateTimeImmutable
{
@@ -301,7 +301,7 @@ class Date implements DateTimeable
/**
* @deprecated As of v8.1. Use `toTimestamp` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getTimestamp(): int
{
diff --git a/application/Espo/Core/Field/DateTime.php b/application/Espo/Core/Field/DateTime.php
index eab8459300..2fd40eb713 100644
--- a/application/Espo/Core/Field/DateTime.php
+++ b/application/Espo/Core/Field/DateTime.php
@@ -390,7 +390,7 @@ class DateTime implements DateTimeable
/**
* @deprecated As of v8.1. Use `toString` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getString(): string
{
@@ -399,7 +399,7 @@ class DateTime implements DateTimeable
/**
* @deprecated As of v8.1. Use `toDateTime` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getDateTime(): DateTimeImmutable
{
@@ -408,7 +408,7 @@ class DateTime implements DateTimeable
/**
* @deprecated As of v8.1. Use `toTimestamp` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getTimestamp(): int
{
diff --git a/application/Espo/Core/Field/DateTimeOptional.php b/application/Espo/Core/Field/DateTimeOptional.php
index 2aa407203b..594cf0fb39 100644
--- a/application/Espo/Core/Field/DateTimeOptional.php
+++ b/application/Espo/Core/Field/DateTimeOptional.php
@@ -510,7 +510,7 @@ class DateTimeOptional implements DateTimeable
/**
* @deprecated As of v8.1. Use `toString` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getString(): string
{
@@ -519,7 +519,7 @@ class DateTimeOptional implements DateTimeable
/**
* @deprecated As of v8.1. Use `toDateTime` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getDateTime(): DateTimeImmutable
{
@@ -528,7 +528,7 @@ class DateTimeOptional implements DateTimeable
/**
* @deprecated As of v8.1. Use `toTimestamp` instead.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function getTimestamp(): int
{
diff --git a/application/Espo/Core/Hook/Deprecations/BaseHook.php b/application/Espo/Core/Hook/Deprecations/BaseHook.php
deleted file mode 100644
index 95690c311e..0000000000
--- a/application/Espo/Core/Hook/Deprecations/BaseHook.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Hook\Deprecations;
-
-use Espo\Core\Utils\Config;
-use Espo\Core\Utils\Log;
-use Espo\Entities\User;
-use Espo\ORM\EntityManager;
-
-/**
- * For backward compatibility.
- *
- * @deprecated Not to be used.
- * @todo Remove in v10.0.
- */
-class BaseHook
-{
- public function __construct(
- private EntityManager $entityManager,
- private User $user,
- private Log $log,
- private Config $config,
- ) {
- $className = get_class($this);
-
- $message = "Important: Your hook $className extends from Espo\\Core\\Hooks\\Base. " .
- "This class is going to be removed. You need to fix your hooks.";
-
- $this->log->warning($message);
- }
-
- protected function getEntityManager(): EntityManager
- {
- return $this->entityManager;
- }
-
- protected function getUser(): User
- {
- return $this->user;
- }
-
- protected function getConfig(): Config
- {
- return $this->config;
- }
-}
diff --git a/application/Espo/Core/Jobs/Base.php b/application/Espo/Core/Jobs/Base.php
deleted file mode 100644
index aa2afab702..0000000000
--- a/application/Espo/Core/Jobs/Base.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Jobs;
-
-use Espo\Core\Container;
-
-/**
- * @deprecated As of v7.0. Create classes that implement Espo\Core\Job\Job and Espo\Core\Job\JobDataLess
- * interfaces. Pass needed dependencies via a constructor.
- * @todo Remove in v10.0.
- */
-abstract class Base
-{
- private $container; /** @phpstan-ignore-line */
-
- protected function getContainer() /** @phpstan-ignore-line */
- {
- return $this->container;
- }
-
- protected function getEntityManager() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('entityManager');
- }
-
- protected function getServiceFactory() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('serviceFactory');
- }
-
- protected function getConfig() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('config');
- }
-
- protected function getMetadata() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('metadata');
- }
-
- protected function getUser() /** @phpstan-ignore-line */
- {
- return $this->getContainer()->get('user');
- }
-
- public function __construct(Container $container) /** @phpstan-ignore-line */
- {
- $this->container = $container;
- }
-}
diff --git a/application/Espo/Core/Jobs/Job.php b/application/Espo/Core/Jobs/Job.php
deleted file mode 100644
index 506129016b..0000000000
--- a/application/Espo/Core/Jobs/Job.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Jobs;
-
-/**
- * @deprecated Use `Espo\Core\Job\Job` instead.
- */
-interface Job extends \Espo\Core\Job\JobDataLess
-{
-}
diff --git a/application/Espo/Core/Loaders/Base.php b/application/Espo/Core/Loaders/Base.php
deleted file mode 100644
index a951b29ba7..0000000000
--- a/application/Espo/Core/Loaders/Base.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Loaders;
-
-use Espo\Core\Container;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- */
-abstract class Base implements Loader
-{
- protected $container; /** @phpstan-ignore-line */
-
- public function __construct(Container $container)
- {
- $this->container = $container;
- }
-
- protected function getContainer() /** @phpstan-ignore-line */
- {
- return $this->container;
- }
-}
diff --git a/application/Espo/Core/Mail/EmailSender.php b/application/Espo/Core/Mail/EmailSender.php
index 151ccb7a00..419c5dd812 100644
--- a/application/Espo/Core/Mail/EmailSender.php
+++ b/application/Espo/Core/Mail/EmailSender.php
@@ -110,18 +110,6 @@ class EmailSender
$this->createSender()->withEnvelopeFromAddress($fromAddress);
}
- /**
- * With envelope options.
- *
- * @param array{from: string} $options
- * @deprecated As of v9.1.
- * @todo Remove in v10.0. Use `withEnvelopeFromAddress`.
- */
- public function withEnvelopeOptions(array $options): Sender
- {
- return $this->createSender()->withEnvelopeOptions($options);
- }
-
/**
* Add a header.
*
diff --git a/application/Espo/Core/Mail/Sender.php b/application/Espo/Core/Mail/Sender.php
index 8737c1e753..356993b40e 100644
--- a/application/Espo/Core/Mail/Sender.php
+++ b/application/Espo/Core/Mail/Sender.php
@@ -140,8 +140,6 @@ class Sender
} else if (!is_array($params)) {
throw new InvalidArgumentException();
}
-
- /** @noinspection PhpDeprecationInspection */
return $this->useSmtp($params);
}
@@ -167,19 +165,6 @@ class Sender
$this->envelopeFromAddress = $fromAddress;
}
- /**
- * With envelope options.
- *
- * @param array{from: string} $options
- * @deprecated As of v9.1.
- * @todo Remove in v10.0. Use `withEnvelopeFromAddress`.
- */
- public function withEnvelopeOptions(array $options): self
- {
- /** @noinspection PhpDeprecationInspection */
- return $this->setEnvelopeOptions($options);
- }
-
/**
* @since 9.2.0
* @internal
@@ -206,23 +191,9 @@ class Sender
}
/**
- * @deprecated As of v6.0. Use withParams.
- * @param array<string, mixed> $params
- * @todo Remove in v10.0.
- */
- public function setParams(array $params = []): self
- {
- $this->params = array_merge($this->params, $params);
-
- return $this;
- }
-
- /**
- * @deprecated As of 6.0. Use withSmtpParams.
* @param array<string, mixed> $params
- * @todo Make private in v10.0.
*/
- public function useSmtp(array $params = []): self
+ private function useSmtp(array $params = []): self
{
$this->isGlobal = false;
@@ -410,29 +381,6 @@ class Sender
throw new SendingError($e->getMessage());
}
- /**
- * @deprecated Since v9.1.0. Use EmailSender::generateMessageId.
- * @noinspection PhpUnused
- * @todo Remove in v10.0.
- */
- static public function generateMessageId(Email $email): string
- {
- return EmailSender::generateMessageId($email);
- }
-
- /**
- * @deprecated As of v6.0.
- *
- * @param array{from: string} $options
- * @todo Make private in v10.0. Use `withEnvelopeFromAddress`.
- */
- public function setEnvelopeOptions(array $options): self
- {
- $this->envelopeFromAddress = $options['from'];
-
- return $this;
- }
-
private function addRecipientAddresses(Email $email, Message $message): void
{
$value = $email->get('to');
diff --git a/application/Espo/Core/Traits/Injectable.php b/application/Espo/Core/Traits/Injectable.php
deleted file mode 100644
index 1b4a85b55d..0000000000
--- a/application/Espo/Core/Traits/Injectable.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Core\Traits;
-
-/**
- * @deprecated
- * @todo Remove in v10.0.
- * @phpstan-ignore-next-line
- */
-trait Injectable
-{
- protected $injections = []; /** @phpstan-ignore-line */
-
- /**
- * @param string $name
- * @param object $object
- * @return void
- */
- public function inject($name, $object)
- {
- $this->injections[$name] = $object;
- }
-
- /**
- * @return string[]
- */
- public function getDependencyList(): array
- {
- return $this->dependencyList;
- }
-
- /**
- * @return ?object
- */
- protected function getInjection(string $name)
- {
- return $this->injections[$name] ?? $this->$name ?? null;
- }
-
- /**
- * @return void
- */
- protected function addDependency(string $name)
- {
- $this->dependencyList[] = $name;
- }
-
- /**
- * @param string[] $list
- * @return void
- */
- protected function addDependencyList(array $list)
- {
- foreach ($list as $item) {
- $this->addDependency($item);
- }
- }
-}
diff --git a/application/Espo/Core/Utils/Database/Orm/Converter.php b/application/Espo/Core/Utils/Database/Orm/Converter.php
index d839d8762f..0d3ab4c382 100644
--- a/application/Espo/Core/Utils/Database/Orm/Converter.php
+++ b/application/Espo/Core/Utils/Database/Orm/Converter.php
@@ -860,17 +860,6 @@ class Converter
$this->applyIndexes($additionalDefs, $itemEntityType);
}
- // For backward compatibility. Actual as of v8.0.
- // @todo Remove in v10.0.
- // @todo Add deprecation warning in v9.0. If 'fields' is set.
- foreach ($additionalDefs as &$entityDefs) {
- if (!isset($entityDefs['attributes'])) {
- $entityDefs['attributes'] = $entityDefs['fields'] ?? [];
-
- unset($entityDefs['fields']);
- }
- }
-
return $additionalDefs;
}
diff --git a/application/Espo/Core/Utils/Security/HostCheck.php b/application/Espo/Core/Utils/Security/HostCheck.php
index 375a8b218d..de62140ab9 100644
--- a/application/Espo/Core/Utils/Security/HostCheck.php
+++ b/application/Espo/Core/Utils/Security/HostCheck.php
@@ -137,15 +137,6 @@ class HostCheck
);
}
- /**
- * @deprecated Since 9.3.4. Use `isHostAndNotInternal`.
- * @todo Remove in v10.0.0.
- */
- public function isNotInternalHost(string $host): bool
- {
- return $this->isHostAndNotInternal($host);
- }
-
private function normalizeIpAddress(string $ip): string|false
{
if (!str_contains($ip, '.')) {
diff --git a/application/Espo/Entities/Email.php b/application/Espo/Entities/Email.php
index d95bcbc923..584b232aca 100644
--- a/application/Espo/Entities/Email.php
+++ b/application/Espo/Entities/Email.php
@@ -199,39 +199,6 @@ class Email extends Entity
$this->setInContainer('isUsers', false);
}
- /**
- * @deprecated As of v7.4. As the system user ID may be not constant in the future.
- * @todo Remove in v10.0.
- */
- public function isManuallyArchived(): bool
- {
- if ($this->getStatus() !== Email::STATUS_ARCHIVED) {
- return false;
- }
-
- return true;
- }
-
- /**
- * @todo Revise.
- * @deprecated
- */
- public function addAttachment(Attachment $attachment): void
- {
- if (!$this->id) {
- return;
- }
-
- $attachment->set('parentId', $this->id);
- $attachment->set('parentType', Email::ENTITY_TYPE);
-
- if (!$this->entityManager) {
- throw new RuntimeException();
- }
-
- $this->entityManager->saveEntity($attachment);
- }
-
public function hasBodyPlain(): bool
{
return $this->hasInContainer(self::ATTR_BODY_PLAIN) && $this->getFromContainer(self::ATTR_BODY_PLAIN);
diff --git a/application/Espo/Modules/Crm/Hooks/CaseObj/IsInternal.php b/application/Espo/Modules/Crm/Hooks/CaseObj/IsInternal.php
index 18a8d85b49..af882332b0 100644
--- a/application/Espo/Modules/Crm/Hooks/CaseObj/IsInternal.php
+++ b/application/Espo/Modules/Crm/Hooks/CaseObj/IsInternal.php
@@ -34,7 +34,7 @@ use Espo\Core\Hook\Hook\AfterSave;
use Espo\Modules\Crm\Entities\CaseObj;
use Espo\ORM\Entity;
use Espo\ORM\Repository\Option\SaveOptions;
-use Espo\Services\Stream;
+use Espo\Tools\Stream\Service;
/**
@@ -43,7 +43,7 @@ use Espo\Services\Stream;
class IsInternal implements AfterSave
{
public function __construct(
- private Stream $streamService,
+ private Service $streamService,
private FollowersLoader $followersLoader,
) {}
diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.php
index fbe8974d26..9d5a2ec8a3 100644
--- a/application/Espo/ORM/BaseEntity.php
+++ b/application/Espo/ORM/BaseEntity.php
@@ -499,13 +499,13 @@ class BaseEntity implements Entity
case self::TEXT:
if (is_object($value)) {
// Prevents an error.
- // @todo Remove in v10.0.
+ // @todo Remove in v11.0.
return 'Object';
}
if (is_array($value)) {
// Prevents an error.
- // @todo Remove in v10.0.
+ // @todo Remove in v11.0.
return 'Array';
}
diff --git a/application/Espo/ORM/EntityManager.php b/application/Espo/ORM/EntityManager.php
index b4e143be7d..4c8a8acd2a 100644
--- a/application/Espo/ORM/EntityManager.php
+++ b/application/Espo/ORM/EntityManager.php
@@ -460,7 +460,7 @@ class EntityManager
* @deprecated As of v7.0. Use `getCollectionFactory`.
* @param array<string, mixed> $data
* @return EntityCollection<Entity>
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function createCollection(?string $entityType = null, array $data = []): EntityCollection
{
diff --git a/application/Espo/ORM/Query/SelectingBuilderTrait.php b/application/Espo/ORM/Query/SelectingBuilderTrait.php
index 875a7e34ed..0daff47efe 100644
--- a/application/Espo/ORM/Query/SelectingBuilderTrait.php
+++ b/application/Espo/ORM/Query/SelectingBuilderTrait.php
@@ -235,7 +235,7 @@ trait SelectingBuilderTrait
$this->params['joins'] ??= [];
// For bc.
- // @todo Remove in v10.0.
+ // @todo Remove in v11.0.
if (is_array($target)) {
// @todo Log deprecation.
diff --git a/application/Espo/ORM/QueryComposer/BaseQueryComposer.php b/application/Espo/ORM/QueryComposer/BaseQueryComposer.php
index 13eacf02c8..d349d9ad80 100644
--- a/application/Espo/ORM/QueryComposer/BaseQueryComposer.php
+++ b/application/Espo/ORM/QueryComposer/BaseQueryComposer.php
@@ -2991,20 +2991,16 @@ abstract class BaseQueryComposer implements QueryComposer
/**
* Sanitize a string.
- * @todo Make protected in v10.0.
- * @deprecated As of v6.0. Not to be used outside.
*/
- public function sanitize(string $string): string
+ protected function sanitize(string $string): string
{
return preg_replace('/[^A-Za-z0-9_]+/', '', $string) ?? '';
}
/**
* Sanitize an alias for a SELECT statement.
- * @todo Make protected in v10.0.
- * @deprecated As of v6.0. Not to be used outside.
*/
- public function sanitizeSelectAlias(string $string): string
+ protected function sanitizeSelectAlias(string $string): string
{
$string = preg_replace('/[^A-Za-z\r\n0-9_:\'" .,\-()]+/', '', $string) ?? '';
diff --git a/application/Espo/ORM/Repository/Deprecation/RDBRepositoryDeprecationTrait.php b/application/Espo/ORM/Repository/Deprecation/RDBRepositoryDeprecationTrait.php
index 0d149aea6c..e2699a4cfe 100644
--- a/application/Espo/ORM/Repository/Deprecation/RDBRepositoryDeprecationTrait.php
+++ b/application/Espo/ORM/Repository/Deprecation/RDBRepositoryDeprecationTrait.php
@@ -41,7 +41,7 @@ trait RDBRepositoryDeprecationTrait
* Get an entity. If ID is NULL, a new entity is returned.
*
* @deprecated Use `getById` and `getNew`.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function get(?string $id = null): ?Entity
{
diff --git a/application/Espo/ORM/Repository/RDBRepository.php b/application/Espo/ORM/Repository/RDBRepository.php
index 6acf9e8be8..b19ae2a484 100644
--- a/application/Espo/ORM/Repository/RDBRepository.php
+++ b/application/Espo/ORM/Repository/RDBRepository.php
@@ -560,19 +560,6 @@ class RDBRepository implements Repository
return $builder;
}
- /**
- * Create a select builder.
- *
- * @return RDBSelectBuilder<TEntity>
- *
- * @deprecated Since v9.2.5. Use `createBuilder` instead.
- * @todo Remove in v10.0.
- */
- protected function createSelectBuilder(): RDBSelectBuilder
- {
- return $this->createBuilder();
- }
-
/**
* Use hooks instead.
*
diff --git a/application/Espo/Repositories/Preferences.php b/application/Espo/Repositories/Preferences.php
index 5a2ede66a5..6672877ffb 100644
--- a/application/Espo/Repositories/Preferences.php
+++ b/application/Espo/Repositories/Preferences.php
@@ -115,7 +115,7 @@ class Preferences implements Repository,
/**
* @deprecated Use `getById`.
- * @todo Remove in v10.0.
+ * @todo Remove in v11.0.
*/
public function get(?string $id = null): ?Entity
{
diff --git a/application/Espo/Resources/defaults/class-aliases.php b/application/Espo/Resources/defaults/class-aliases.php
index 4bb6e7cb9b..9e4dd0cb93 100644
--- a/application/Espo/Resources/defaults/class-aliases.php
+++ b/application/Espo/Resources/defaults/class-aliases.php
@@ -30,7 +30,6 @@
// Aliases for backward compatibility or patches.
$map = [
'Espo\\Core\\ORM\\Repository\\Option\\SaveContext' => 'Espo\\ORM\\Repository\\Option\\SaveContext',
- 'Espo\\Core\\Hooks\\Base' => 'Espo\\Core\\Hook\\Deprecations\\BaseHook',
'Doctrine\\DBAL\\Platforms\\Keywords\\MariaDb102Keywords' => 'Espo\\Core\\Utils\\Database\\Dbal\\Platforms\\Keywords\\MariaDb102Keywords',
];
diff --git a/application/Espo/Services/Stream.php b/application/Espo/Services/Stream.php
deleted file mode 100644
index 2631edfc80..0000000000
--- a/application/Espo/Services/Stream.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/************************************************************************
- * This file is part of EspoCRM.
- *
- * EspoCRM – Open Source CRM application.
- * Copyright (C) 2014-2026 EspoCRM, Inc.
- * Website: https://www.espocrm.com
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU Affero General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
- ************************************************************************/
-
-namespace Espo\Services;
-
-/**
- * For backward compatibility.
- * @todo Remove in v10.0.
- */
-class Stream extends \Espo\Tools\Stream\Service {}
diff --git a/application/Espo/Tools/App/SettingsService.php b/application/Espo/Tools/App/SettingsService.php
index 395b0bd189..1e0ce61083 100644
--- a/application/Espo/Tools/App/SettingsService.php
+++ b/application/Espo/Tools/App/SettingsService.php
@@ -96,7 +96,6 @@ class SettingsService
$this->filterData($data);
$this->loadAdditionalParams($data);
- /** @noinspection PhpDeprecationInspection */
$metadataData = $this->getMetadataConfigData();
foreach (get_object_vars($metadataData) as $key => $value) {
@@ -109,11 +108,9 @@ class SettingsService
/**
* Get metadata to be used in config.
*
- * @todo Make private in v10.0.0.
* @todo Move away from settings. Use some different approach.
- * @deprecated Since v9.3.2.
*/
- public function getMetadataConfigData(): stdClass
+ private function getMetadataConfigData(): stdClass
{
$data = (object) [];
diff --git a/tests/unit/testData/EntryPoints/Espo/EntryPoints/Download.php b/tests/unit/testData/EntryPoints/Espo/EntryPoints/Download.php
index d3040060ea..5c50f5a3b2 100644
--- a/tests/unit/testData/EntryPoints/Espo/EntryPoints/Download.php
+++ b/tests/unit/testData/EntryPoints/Espo/EntryPoints/Download.php
@@ -3,12 +3,13 @@
namespace tests\unit\testData\EntryPoints\Espo\EntryPoints;
-class Download extends \Espo\Core\EntryPoints\Base
-{
-
- public function run()
- {
+use Espo\Core\Api\Request;
+use Espo\Core\Api\Response;
+use Espo\Core\EntryPoint\EntryPoint;
- }
+class Download implements EntryPoint
+{
+ public function run(Request $request, Response $response): void
+ {}
}