Skip to content

Commit

Permalink
Merge branch 'master' into 1.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadicjosh committed Sep 24, 2023
2 parents de3ca15 + afb66f6 commit 3121323
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Application variables.
APP_NAME=CodefyPHP
APP_VERSION=1.0.0
APP_ENV=development
APP_KEY=changeme
APP_DEBUG=false
APP_BASE_PATH=
APP_BASE_URL=localhost:8080
APP_BASE_URL=http://localhost:8080

# Mailer configuration
MAILER_HOST=localhost
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ App/Domain/Post
App/Domain/PostType
App/Domain/Site
App/Domain/User
App/Shared/ValueObject
database/migrations/.migrations.log
resources/views/*.tpl
storage/logs/*.log
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions App/Shared/ValueObject/TransactionUlid.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Shared\ValueObject;

use Qubus\Exception\Data\TypeException;
use Qubus\ValueObjects\Identity\Ulid;
use Qubus\ValueObjects\ValueObject;

class TransactionUlid extends Ulid implements ValueObject
{
/**
* @throws TypeException
*/
public static function fromString(?string $ulid): static
{
return new static($ulid);
}
}
18 changes: 18 additions & 0 deletions App/Shared/ValueObject/UlidIdentity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Shared\ValueObject;

use Qubus\Exception\Data\TypeException;
use Qubus\ValueObjects\Identity\Ulid;
use Qubus\ValueObjects\ValueObject;

class UlidIdentity extends Ulid implements ValueObject
{
/**
* @throws TypeException
*/
public static function fromString(?string $ulid): static
{
return new static($ulid);
}
}
18 changes: 18 additions & 0 deletions App/Shared/ValueObject/UuidIdentity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Shared\ValueObject;

use Qubus\Exception\Data\TypeException;
use Qubus\ValueObjects\Identity\Uuid;
use Qubus\ValueObjects\ValueObject;

class UuidIdentity extends Uuid implements ValueObject
{
/**
* @throws TypeException
*/
public static function fromString(?string $uuid): self
{
return new self($uuid);
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ To create a new project, run the following command:
composer create-project codefyphp/skeleton my-app-name
```

Replace `my-app-name` with the directory name to which you are starting your new project. Once installed, start the
development server by running the following terminal command:
Replace `my-app-name` with the directory name to which you are starting your new project. Once installed, `cd` into
the root directory of your app and start the development server by running the following terminal command:

```bash
php codex serve
Expand Down
8 changes: 8 additions & 0 deletions config/routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

/*
|--------------------------------------------------------------------------
| Define your different class routes in App/Infrastructure/Http/Routes.
|--------------------------------------------------------------------------
*/
return [];
2 changes: 0 additions & 2 deletions database/migrations/20230901025725_CreateEventStoreTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
use Qubus\Dbal\Schema\CreateTable;
use Qubus\Exception\Exception;

use function Codefy\Framework\Helpers\env;

class CreateEventStoreTable extends Migration
{
/**
Expand Down

0 comments on commit 3121323

Please sign in to comment.