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 <[email protected]>
  • Loading branch information
betterthanclay committed Oct 17, 2023
1 parent af922bd commit 81d98ee
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 27 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.5.1 (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/dictum",
"description": "Text formatting tools",
"type": "library",
"keywords": ["text", "format"],
"keywords": [ "text", "format" ],
"license": "MIT",
"authors": [{
"name": "Tom Wright",
"email": "[email protected]"
}],
"authors": [ {
"name": "Tom Wright",
"email": "[email protected]"
} ],
"require": {
"php": "^8.0",
"symfony/polyfill-mbstring": "^1.7",
Expand All @@ -25,10 +25,10 @@
},
"autoload": {
"psr-4": {
"DecodeLabs\\Dictum\\": "src/Dictum"
"DecodeLabs\\Dictum\\": "src/"
},
"files": [
"src/global.php"
"src/Context.php"
]
},
"extra": {
Expand Down
5 changes: 5 additions & 0 deletions src/Dictum/Context.php → src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@

namespace DecodeLabs\Dictum;

use DecodeLabs\Dictum;
use DecodeLabs\Dictum\Plugins\Number as NumberPlugin;
use DecodeLabs\Dictum\Plugins\Time as TimePlugin;

use DecodeLabs\Exceptional;

use DecodeLabs\Veneer;
use DecodeLabs\Veneer\LazyLoad;
use DecodeLabs\Veneer\Plugin;

use Stringable;

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

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

This file was deleted.

0 comments on commit 81d98ee

Please sign in to comment.