This repository was archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Add links #4
Merged
Merged
Add links #4
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
049fc75
add docker
b6905bb
fix contact form
4a30202
add migrate and module
f43f9bf
edit controllers
ad3034e
add auth error handler
813110e
edit configs
30707d5
Move domain classes into Domain dir
roxblnfk b333c19
Add link mapper
roxblnfk f76e950
Cleanup and fixes
roxblnfk 72326e4
Simplify and clean code
roxblnfk 048f12c
Refactoring
roxblnfk a12c0b9
add middleware
8e174c4
fix entity
80e6ab7
add form
dfc074a
remove abstract form
9d95621
fix validation
95675a8
fix naming
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,5 @@ c3.php | |
|
||
# local app configs | ||
config/params-local.php | ||
|
||
/docker/postgres/data/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3' | ||
|
||
services: | ||
php: | ||
container_name: digest-php | ||
image: yiisoftware/yii-php:7.4-apache | ||
working_dir: /app | ||
ports: | ||
- 8080:80 | ||
volumes: | ||
- ./:/app | ||
- ~/.composer-docker/cache:/root/.composer/cache:delegated | ||
|
||
postgresql: | ||
container_name: postgresql | ||
image: postgres:10.12 | ||
env_file: | ||
- ./docker/postgres/database.env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- ./docker/postgres/data/:/var/lib/postgresql/data/ | ||
restart: always | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=pass | ||
POSTGRES_DB=default |
57 changes: 57 additions & 0 deletions
57
resources/migrations/20200815.160455_0_default_create_link.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace App\Migration; | ||
|
||
use Spiral\Migrations\Migration; | ||
|
||
class OrmDefault185556e6f8caf503f3363d97fd0ffff2 extends Migration | ||
{ | ||
protected const DATABASE = 'default'; | ||
|
||
public function up() | ||
{ | ||
$this->table('link_suggestion') | ||
->addColumn('id', 'primary', [ | ||
'nullable' => false, | ||
'default' => null | ||
]) | ||
->addColumn('url', 'string', [ | ||
'nullable' => false, | ||
'default' => null, | ||
'size' => 255 | ||
]) | ||
->addColumn('description', 'string', [ | ||
'nullable' => true, | ||
'default' => null, | ||
'size' => 255 | ||
]) | ||
->addColumn('created_at', 'datetime', [ | ||
'nullable' => false, | ||
'default' => null | ||
]) | ||
->addColumn('updated_at', 'datetime', [ | ||
'nullable' => false, | ||
'default' => null | ||
]) | ||
->addColumn('identity_id', 'integer', [ | ||
'nullable' => false, | ||
'default' => null | ||
]) | ||
->addIndex(["identity_id"], [ | ||
'name' => 'link_suggestion_index_identity_id_5f3911c14898c', | ||
'unique' => false | ||
]) | ||
->addForeignKey(["identity_id"], 'identity', ["id"], [ | ||
'name' => 'link_suggestion_foreign_identity_id_5f3911c14899c', | ||
'delete' => 'CASCADE', | ||
'update' => 'CASCADE' | ||
]) | ||
->setPrimaryKeys(["id"]) | ||
->create(); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->table('link_suggestion')->drop(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.