Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Rename Tightenco namespace to Tighten #33

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Quicksand is an Artisan command that you can run in your scheduler daily.
'providers' => [
...

Tightenco\Quicksand\QuicksandServiceProvider::class,
Tighten\Quicksand\QuicksandServiceProvider::class,
```
3. Publish your config: `php artisan vendor:publish --provider="Tightenco\Quicksand\QuicksandServiceProvider"`
3. Publish your config: `php artisan vendor:publish --provider="Tighten\Quicksand\QuicksandServiceProvider"`
4. Edit your config. Define which classes and/or pivot tables you'd like to have Quicksand clean up for you, how many days Quicksand should wait to clean up, and whether or not the results should be logged. The default `'days'` until cleaning up is overridable by specifying a `'days'` key when registering a model or pivot table:

1. _Note: Quicksand will disregard any global scopes applied to models when deleting._
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"autoload": {
"psr-4": {
"Tightenco\\Quicksand\\": "src"
"Tighten\\Quicksand\\": "src"
},
"classmap": [
"tests"
Expand All @@ -49,7 +49,7 @@
"extra": {
"laravel": {
"providers": [
"Tightenco\\Quicksand\\QuicksandServiceProvider"
"Tighten\\Quicksand\\QuicksandServiceProvider"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/DeleteOldSoftDeletes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tightenco\Quicksand;
namespace Tighten\Quicksand;

use DateInterval;
use DateTime;
Expand Down
2 changes: 1 addition & 1 deletion src/QuicksandServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tightenco\Quicksand;
namespace Tighten\Quicksand;

use Illuminate\Support\ServiceProvider;

Expand Down
4 changes: 2 additions & 2 deletions tests/QuicksandDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Monolog\Logger;
use Monolog\Handler\TestHandler;
use Orchestra\Testbench\TestCase;
use Tightenco\Quicksand\DeleteOldSoftDeletes;
use Tighten\Quicksand\DeleteOldSoftDeletes;

class QuicksandDeleteTest extends TestCase
{
Expand Down Expand Up @@ -310,7 +310,7 @@ public function it_writes_to_logs_if_entries_are_deleted()
$this->deleteOldSoftDeletes();

$expectedLogOutput = sprintf(
'Tightenco\Quicksand\DeleteOldSoftDeletes force deleted these number of rows: %s',
'Tighten\Quicksand\DeleteOldSoftDeletes force deleted these number of rows: %s',
print_r(['Models\Person' => 1], true)
);

Expand Down