mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Upgrade to L5 + huge refactor + more. closes #2
New stuff: - Signup + email confirmation. - Updated authentication strategy with remember cookies. closes #5 - New search system with some example gambits! This is cool - check out the source. Fulltext drivers will be implemented as decorators overriding the EloquentPostRepository’s findByContent method. - Lay down the foundation for bootstrapping the Ember app. - Update Web layer’s asset manager to properly publish CSS/JS files. - Console commands to run installation migrations and seeds. Refactoring: - New structure: move models, repositories, commands, and events into their own namespaces, rather than grouping by entity. - All events are classes. - Use L5 middleware and command bus implementations. - Clearer use of repositories and the Active Record pattern. Repositories are used only for retrieval of ActiveRecord objects, and then save/delete operations are called directly on those ActiveRecords. This way, we don’t over-abstract at the cost of Eloquent magic, but testing is still easy. - Refactor of Web layer so that it uses the Actions routing architecture. - “Actor” concept instead of depending on Laravel’s Auth. - General cleanup!
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 62377ab49c890e65388dcf2e4aedfd9c
|
||||
<?php //[STAMP] c39b1e7ca7bb0234c110424ed8081d25
|
||||
|
||||
// This class was automatically generated by build task
|
||||
// You should not change it manually as it will be overwritten on next build
|
||||
@@ -1117,6 +1117,7 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Sets a cookie with the given name and value.
|
||||
* You can set additional cookie params like `domain`, `path`, `expire`, `secure` in array passed as last argument.
|
||||
*
|
||||
* ``` php
|
||||
* <?php
|
||||
@@ -1124,13 +1125,16 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* ?>
|
||||
* ```
|
||||
*
|
||||
* @param $cookie
|
||||
* @param $value
|
||||
* @param $name
|
||||
* @param $val
|
||||
* @param array $params
|
||||
* @internal param $cookie
|
||||
* @internal param $value
|
||||
*
|
||||
* @return mixed
|
||||
* @see \Codeception\Lib\InnerBrowser::setCookie()
|
||||
*/
|
||||
public function setCookie($name, $val) {
|
||||
public function setCookie($name, $val, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
|
||||
}
|
||||
|
||||
@@ -1139,13 +1143,15 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Grabs a cookie value.
|
||||
* You can set additional cookie params like `domain`, `path` in array passed as last argument.
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* @see \Codeception\Lib\InnerBrowser::grabCookie()
|
||||
*/
|
||||
public function grabCookie($name) {
|
||||
public function grabCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));
|
||||
}
|
||||
|
||||
@@ -1154,6 +1160,7 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Checks that a cookie with the given name is set.
|
||||
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
|
||||
*
|
||||
* ``` php
|
||||
* <?php
|
||||
@@ -1162,18 +1169,19 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* ```
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* Conditional Assertion: Test won't be stopped on fail
|
||||
* @see \Codeception\Lib\InnerBrowser::seeCookie()
|
||||
*/
|
||||
public function canSeeCookie($name) {
|
||||
public function canSeeCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args()));
|
||||
}
|
||||
/**
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Checks that a cookie with the given name is set.
|
||||
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
|
||||
*
|
||||
* ``` php
|
||||
* <?php
|
||||
@@ -1182,11 +1190,11 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* ```
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* @see \Codeception\Lib\InnerBrowser::seeCookie()
|
||||
*/
|
||||
public function seeCookie($name) {
|
||||
public function seeCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));
|
||||
}
|
||||
|
||||
@@ -1195,27 +1203,31 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Checks that there isn't a cookie with the given name.
|
||||
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* Conditional Assertion: Test won't be stopped on fail
|
||||
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
|
||||
*/
|
||||
public function cantSeeCookie($name) {
|
||||
public function cantSeeCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args()));
|
||||
}
|
||||
/**
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Checks that there isn't a cookie with the given name.
|
||||
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
|
||||
*/
|
||||
public function dontSeeCookie($name) {
|
||||
public function dontSeeCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));
|
||||
}
|
||||
|
||||
@@ -1224,13 +1236,15 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
* [!] Method is generated. Documentation taken from corresponding module.
|
||||
*
|
||||
* Unsets cookie with the given name.
|
||||
* You can set additional cookie params like `domain`, `path` in array passed as last argument.
|
||||
*
|
||||
* @param $cookie
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
* @see \Codeception\Lib\InnerBrowser::resetCookie()
|
||||
*/
|
||||
public function resetCookie($name) {
|
||||
public function resetCookie($name, $params = null) {
|
||||
return $this->scenario->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user