Skip to content

Commit

Permalink
Add a deprecate message
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Mar 25, 2022
1 parent c473d3b commit 59e7d81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions libraries/src/Installer/InstallerAdapter.php
Expand Up @@ -1040,11 +1040,18 @@ protected function setupScriptfile()
$installer = null;

// Load the installer from the file
if (file_exists($manifestScriptFile))
if (!file_exists($manifestScriptFile))
{
require_once $manifestScriptFile;
@trigger_error(
'Installer file must exist when defined. In version 5.0 this will crash.',
E_USER_DEPRECATED
);

return;
}

require_once $manifestScriptFile;

// When the instance is a service provider, then register the container with it
if ($installer instanceof ServiceProviderInterface)
{
Expand Down

0 comments on commit 59e7d81

Please sign in to comment.