Skip to content

Commit 3abb1d8

Browse files
update
1 parent 07a2903 commit 3abb1d8

File tree

5 files changed

+54
-9
lines changed

5 files changed

+54
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
/.vscode
66
/.github
77
.env
8+
.env.example
89
composer.lock

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"type": "library",
66
"license": "MIT",
77
"authors": [
8-
{
9-
"name": "Fredrick Peterson",
10-
"email": "[email protected]"
11-
},
128
{
139
"name": "Tame Developers",
1410
"email": "[email protected]"
@@ -30,5 +26,10 @@
3026
"src/helpers.php"
3127
]
3228
},
33-
"minimum-stability": "stable"
29+
"minimum-stability": "stable",
30+
"config": {
31+
"allow-plugins": {
32+
"tamedevelopers/support": true
33+
}
34+
}
3435
}

src/File.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*
2626
* @package tamedevelopers\file
2727
* @author Tame Developers <[email protected]>
28-
* @author Fredrick Peterson <[email protected]>
2928
* @copyright 2021-2023 Tame Developers
3029
* @license http://www.opensource.org/licenses/MIT The MIT License
3130
* @link https://github.com/tamedevelopers/file

src/Traits/FileStorageTrait.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,13 @@ protected function createTimeBaseFolder($uploadDirectory = null)
174174
// if directory is empty
175175
$uploadDirectory = empty($uploadDirectory) ? "" : "{$uploadDirectory}/";
176176

177+
$stamp = new Time($now);
178+
179+
// Getting current year month day
177180
$time = [
178-
"year" => Time::timestamp($now, 'Y'),
179-
"month" => Time::timestamp($now, 'n'),
180-
"day" => Time::timestamp($now, 'j'),
181+
"year" => $stamp->format('Y'),
182+
"month" => $stamp->format('n'),
183+
"day" => $stamp->format('j'),
181184
"now" => $now
182185
];
183186

tame

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
// Unix timestamp with microseconds
5+
define('TAME_START', microtime(true));
6+
7+
/*
8+
|--------------------------------------------------------------------------
9+
| Ensure <composer autoload> is registered
10+
|--------------------------------------------------------------------------
11+
|
12+
| This file makes sure that composer's autoloader is loaded before any otherthing
13+
| in this application. It also ensures that all of our dependencies are installed
14+
| and ready to use by the developer.
15+
|
16+
*/
17+
18+
include_once __DIR__ . "/vendor/autoload.php";
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Run The Application CLI <dispatcher>
23+
|--------------------------------------------------------------------------
24+
|
25+
| This file is where your <CLI commands> will be dispatched from
26+
| using the command line, the response sent back to a terminal
27+
| or another output device for the developers.
28+
|
29+
*/
30+
31+
$artisan = new Tamedevelopers\Support\Capsule\Artisan();
32+
33+
/**
34+
* Register the default Support Command Name
35+
*/
36+
$artisan->register(
37+
'make', new Tamedevelopers\Support\Commands\MakeCommand, 'Make Artisans'
38+
);
39+
40+
41+
exit($artisan->run($argv));

0 commit comments

Comments
 (0)