Skip to content

Commit

Permalink
fixed alies namespace problem
Browse files Browse the repository at this point in the history
  • Loading branch information
joy2362 committed Jan 30, 2023
1 parent 7253df2 commit 15e03d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Php Time Zone

php artisan vendor:publish --provider="Joy2362\PhpTimezone\PhpTimeZoneServiceProvider"
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "joy2362/php-time-zone",
"description": "A simple package that provide list of all timezone that php support",
"type": "library",
"keywords": ["laravel", "timezone","php-time-zone"],
"require": {
"php": "^7.2.5|^8.0"
},
Expand All @@ -24,5 +25,9 @@
]
}
},
"minimum-stability": "dev"
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
1 change: 0 additions & 1 deletion src/Facades/TimeZoneFacade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

namespace Joy2362\PhpTimezone\Facades;

use Illuminate\Support\Facades\Facade;
Expand Down
3 changes: 2 additions & 1 deletion src/PhpTimeZoneServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Joy2362\PhpTimezone\Facades\TimeZoneFacade;

class PhpTimeZoneServiceProvider extends ServiceProvider
{
Expand All @@ -25,7 +26,7 @@ public function register()
});

$loader = AliasLoader::getInstance();
$loader->alias('TimeZone', Joy2362\PhpTimezone\Facades\TimeZoneFacade::class);
$loader->alias('TimeZone', TimeZoneFacade::class);


}
Expand Down
1 change: 0 additions & 1 deletion src/TimeZoneService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

namespace Joy2362\PhpTimezone;

use DateTime;
Expand Down

0 comments on commit 15e03d0

Please sign in to comment.