Skip to content

Commit 879ef79

Browse files
committed
FOUR-20506 Improvements
1 parent a93a0be commit 879ef79

4 files changed

Lines changed: 33 additions & 4 deletions

File tree

‎ProcessMaker/Application.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
*/
1515
class Application extends IlluminateApplication
1616
{
17-
// ProcessMaker Version
18-
public const VERSION = '4.0.0';
19-
2017
/**
2118
* Sets the timezone for the application and for php with the specified timezone.
2219
*
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace ProcessMaker\Providers;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Database\Migrations\MigrationRepositoryInterface;
7+
use Illuminate\Database\Migrations\DatabaseMigrationRepository;
8+
use Illuminate\Database\ConnectionResolverInterface;
9+
10+
class AppServiceProvider extends ServiceProvider
11+
{
12+
/**
13+
* Register any application services.
14+
*/
15+
public function register(): void
16+
{
17+
$resolver = $this->app->make(ConnectionResolverInterface::class);
18+
$table = $this->app['config']['database.migrations'];
19+
$this->app->bind(MigrationRepositoryInterface::class, function ($app) use ($resolver, $table) {
20+
return new DatabaseMigrationRepository($resolver, $table);
21+
});
22+
}
23+
24+
/**
25+
* Bootstrap any application services.
26+
*/
27+
public function boot(): void
28+
{
29+
//
30+
}
31+
}

‎config/app.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
/**
174174
* ProcessMaker Service Providers
175175
*/
176+
ProcessMaker\Providers\AppServiceProvider::class,
176177
ProcessMaker\Providers\ProcessMakerServiceProvider::class,
177178
ProcessMaker\Providers\RecommendationsServiceProvider::class,
178179
ProcessMaker\Providers\SettingServiceProvider::class,

‎config/mail.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'username' => env('MAIL_USERNAME'),
5050
'password' => env('MAIL_PASSWORD'),
5151
'timeout' => null,
52-
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL'))['host']),
52+
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'))['host']),
5353
'auth_mode' => null,
5454
'verify_peer' => env('VERIFY_PEER', false),
5555
],

0 commit comments

Comments
 (0)