Skip to content

Commit 0b5e129

Browse files
committed
fix documentation typo
1 parent d5c38fa commit 0b5e129

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

src/app/orm/start/start.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h3>Installation</h3>
3434
<p>
3535
If the DevNet framework is not fully installed, you can install the DevNet ORM package into your project using Composer by running the following command in your terminal:
3636
</p>
37-
<pre><code class="language-shell">composer require devnet/entity</code></pre>
37+
<pre><code class="language-shell">composer require devnet/orm</code></pre>
3838
<br>
3939
<h3>Defining the EntityContext</h3>
4040
<p>
@@ -99,7 +99,7 @@ <h4>Data annotations</h4>
9999
Data annotations are attributes that can be applied to classes and properties to provide additional information about how they should be mapped to the database. By using data annotations, we can specify the table name and column names that should be used when mapping the entity to the database.
100100
</p>
101101
<p>
102-
Assuming the entity Post presented previously has a property used as the primary key that does not follow the naming convention mentioned earlier. Instead of <code>Post::Id</code>, it has <code>Post::PostId</code>. The corresponding table in the database has a different naming. In this case, we can use data annotations to map the entity without changing its shape, like this in the following example:
102+
Assuming the entity Post presented previously has a property used as the primary key that does not follow the naming convention mentioned earlier. Instead of <code>Post::Id</code>, it has <code>Post::PostId</code>, and the corresponding table in the database is <code>Posts</code>, which is a different naming. In this case, we can use data annotations to map the entity without changing its shape, like this in the following example:
103103
</p>
104104
<pre><code class="language-php">&lt;?php
105105

src/app/setup/installation/installation.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>Software Requirements</h3>
1717
<li>You may need to install or activate <code>PDO PHP Extensions</code></li>
1818
</ul>
1919
<blockquote class="alert alert-warning">
20-
<b>Important:</b> When you install composer on Linux operating system, please do not forget to add <code>composer/vendor/bin</code> into the system environment variables inside the file <code>.bashrc</code> like this:<br>
20+
<b>Important:</b> If you are using composer on a Linux operating system, please make sure that you have added the path <code>"composer/vendor/bin"</code> to the system environment variables in the <code>".bashrc"</code> file as follows:<br>
2121
<code>export PATH="$PATH:$HOME/.config/composer/vendor/bin"</code>
2222
</blockquote>
2323
<br>

src/app/web/http/http.component.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ <h6>Get The Request Method</h6>
2828
<pre><code class="language-php">$method = $httpContext->Request->Method;</code></pre>
2929
<br>
3030
<h6>The Request URL</h6>
31-
<pre><code class="language-php">$scheme = $httpContext->Request->Scheme;
32-
$host = $httpContext->Request->Host->Name;
33-
$port = $httpContext->Request->Host->Port;
34-
$path = $httpContext->Request->Path;
35-
$url = $scheme . '://' . $host . $path;</code></pre>
31+
<pre><code class="language-php">$scheme = $httpContext->Request->Url->Scheme;
32+
$host = $httpContext->Request->Url->Host->Name;
33+
$port = $httpContext->Request->Url->Host->Port;
34+
$path = $httpContext->Request->Url->Path;</code></pre>
3635
<br>
3736
<h6>The Request Query</h6>
38-
<pre><code class="language-php">$query = $httpContext->Request->Query;
37+
<pre><code class="language-php">$query = $httpContext->Request->Url->Query;
3938
$value = $query->getValue('name');</code></pre>
4039
<h6>The Request Form</h6>
4140
<pre><code class="language-php">$form = $httpContext->Request->Form;

0 commit comments

Comments
 (0)