Skip to content
Merged
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
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# tutorial-101

Book tutorial starting from Dotkernel Light: Level 101 beginner

## BRANCH : - main unde e documentatia , se compileaza documentatia. aplicatie din light, deploy functional !!!! --> 101.dotkernel.net

1. instalezi light la tine pe WSL2
2. iei chapter 1, citesti documentation, implementezi una cite una
- CHAPTER-1-doctrine # protected - including Light, and add visible DIFF between branches
- CHAPTER-2- forms # protected
- CHAPTER-3- inputfilter # protected
- CHAPTER-4 -list books # protected

main: incepi de la light , clone
- adaigi folderul docs/book cu structura asta https://github.com/dotkernel/dot-session/tree/5.0/docs/book
- cu fisier symlink si etc.
10 changes: 5 additions & 5 deletions docs/book/v1/chapter-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The first step is to add alongside your current packages the required entries for our Doctrine installation.
We would add the following to our `composer.json` file located in our root folder:

![composer.json](images/composer.png)
![composer.json](images/chapter-1/composer.png)

```text
"dotkernel/dot-cache": "^4.0",
Expand Down Expand Up @@ -47,7 +47,7 @@ After successfully installing our dependencies, we now need to configure our Doc

In the file `config/autoload/local.php` the structure would be updated like this:

![local.php](images/local.png)
![local.php](images/chapter-1/local.png)

```php
$databases = [
Expand Down Expand Up @@ -84,9 +84,9 @@ This package takes all the provided configs from the `config/config.php` file an

Our new `src/App/src/ConfigProvider.php` class would look like this now:

![config-provider-1](images/config-provider-1.png)
![config-provider-1](images/chapter-1/config-provider-1.png)

![config-provider-2](images/config-provider-2.png)
![config-provider-2](images/chapter-1/config-provider-2.png)

```php
public function __invoke(): array
Expand Down Expand Up @@ -165,7 +165,7 @@ private function getDoctrineConfig(): array
Now that everything has been configured we only need to do one last thing, to create an executable for the Doctrine CLI.
In our case we will create a `doctrine` file inside the application's `bin` directory:

![doctrine](images/doctrine.png)
![doctrine](images/chapter-1/doctrine.png)

```php
#!/usr/bin/env php
Expand Down
Loading