Skip to content

Commit

Permalink
Refactored package file structure
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <tom@inflatablecookie.com>
  • Loading branch information
betterthanclay committed Oct 17, 2023
1 parent 02c9e49 commit 4b239a9
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 28 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Refactored package file structure

## v0.1.3 (2023-09-26)
* Converted phpstan doc comments to generic

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "decodelabs/cosmos",
"description": "Internationalisation made simple",
"type": "library",
"keywords": [],
"keywords": [ ],
"license": "proprietary",
"authors": [{
"name": "Tom Wright",
"email": "tom@inflatablecookie.com"
}],
"authors": [ {
"name": "Tom Wright",
"email": "tom@inflatablecookie.com"
} ],
"require": {
"php": "^8.0",
"ext-intl": "*",
Expand All @@ -22,10 +22,10 @@
},
"autoload": {
"psr-4": {
"DecodeLabs\\Cosmos\\": "src/Cosmos/"
"DecodeLabs\\Cosmos\\": "src/"
},
"files": [
"src/global.php"
"src/Context.php"
]
},
"extra": {
Expand Down
4 changes: 4 additions & 0 deletions src/Cosmos/Context.php → src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
namespace DecodeLabs\Cosmos;

use DateTimeZone as Timezone;
use DecodeLabs\Cosmos;
use DecodeLabs\Veneer;
use DecodeLabs\Veneer\Plugin;
use IntlTimeZone;
use Locale as SysLocale;

// Register the Veneer facade
Veneer::register(Context::class, Cosmos::class);

class Context
{
#[Plugin]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions src/global.php

This file was deleted.

0 comments on commit 4b239a9

Please sign in to comment.