You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<b>Note:</b> You can run your command-line application by executing the bin file of your application <code>./bin/run</code>
127
127
</blockquote>
128
128
<p>
129
-
In this example, we have renamed the bin files <code>./bin/run</code> and <code>./bin/run.bat</code> to match the name of the root command, and became <code>./bin/watch</code> and <code>./bin/watch.bat</code>
129
+
In this example, we have renamed the bin files <code>./bin/run</code> and <code>./bin/run.bat</code> to <code>./bin/watch</code> and <code>./bin/watch.bat</code> to match the name of the root command.
130
130
</p>
131
131
<p>
132
132
Now you can execute the command with a given time zone argument to get the current time of that zone.
@@ -138,7 +138,7 @@ <h5>Output</h5>
138
138
<p>
139
139
Or execute the command with the option <code>--version</code> to get the version information.
<li><b>$args:</b> (<code>DevNet\System\Event\EventArgs</code>) represents the event arguments to be handled by the handler.</li>
108
108
</ul>
109
109
<p>
110
-
The example below represents a <code>Button</code> class as a publisher with two events: The <code>click</code> and <code>keypress</code> events, which can be associated with event listners.
110
+
The example below represents a <code>Button</code> class as a publisher with two events: The <code>click</code> and <code>keypress</code> events, which can be associated with event listeners.
111
111
</p>
112
112
<pre><codeclass="language-php"><?php
113
113
@@ -129,7 +129,7 @@ <h5>Event Handler</h5>
129
129
$this->keypress = new EventHandler();
130
130
}
131
131
132
-
public function addListner(string $event, callable $handler): void
132
+
public function addListener(string $event, callable $handler): void
Copy file name to clipboardExpand all lines: src/app/entity/query/query.component.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ <h3>Linq Query</h3>
46
46
<code>EntitySet</code> implements the <code>IQueryable</code> interface so it can use LINQ (Language-Integrated Query) to query data from the database, which are chained methods that represent SQL operations, compiled by the database provider to be sent as a specific database query language (MySQL, SQLite, ...) and then to get the result set.
47
47
</p>
48
48
<blockquoteclass="alert alert-warning">
49
-
<b>Importante:</b> Linq methods are extension methods, so to use this feature, you have to declare the use of the Linq namespace <code>DevNet\System\Linq</code> in every class or code that uses Linq methods with an instance of <code>EntitySet</code>.
49
+
<b>Important:</b> Linq methods are extension methods, so to use this feature, you have to declare the use of the Linq namespace <code>DevNet\System\Linq</code> in every class or code that uses Linq methods with an instance of <code>EntitySet</code>.
You can register Entity ORM as a reused service that will be injected into your application using the Extension method <code>ServiceCollectionExtensions::addEntityContext()</code> inside the method <code>WebHostBuilder::register()</code>, as shown in the following code example:
191
191
</p>
@@ -226,6 +226,7 @@ <h3>Registing the EntityContext</h3>
226
226
227
227
use DevNet\Web\Endpoint\ActionController;
228
228
use DevNet\Web\Endpoint\IActionResult;
229
+
use DevNet\Web\Endpoint\Route;
229
230
use Application\Models\BlogContext;
230
231
231
232
class BlogController extends ActionController
@@ -237,9 +238,10 @@ <h3>Registing the EntityContext</h3>
Copy file name to clipboardExpand all lines: src/app/security/antiforgery/antiforgery.component.html
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,9 @@ <h3>X-CSRF-TOKEN</h3>
74
74
<p>
75
75
After registering the Antiforgery service with the MVC web application, it will be injected into the view so that you can generate a token in the HTML form.
0 commit comments