Skip to content

Commit b2f64ec

Browse files
committed
Merge branch 'feature/remove-deprecated-code' into develop
2 parents ba8150b + 77137cf commit b2f64ec

16 files changed

+0
-392
lines changed

classes/Authentication/BaseCryptCookieSession.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,4 @@ public function clearAll() {
9696
$this->encodeCryptCookie();
9797
}
9898

99-
/**
100-
* @return BaseSessionInterface
101-
* @deprecated Since 1.4, Removal: 1.5, Reason: Use ->clearAll() instead
102-
*/
103-
public function clear_all() {
104-
$this->clearAll();
105-
}
106-
10799
}

classes/Authentication/BaseHttpAuthentication.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,4 @@ protected function isAuthenticated() {
5555
sha1($this->password) === $httpAuthentication[$this->name];
5656
}
5757

58-
/**
59-
* @throws \Exception
60-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->checkAuthentication() instead
61-
*/
62-
public function check_authentication() {
63-
$this->checkAuthentication();
64-
}
65-
6658
}

classes/Authentication/BasePHPSession.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,4 @@ public function clearAll() {
7171
return $this;
7272
}
7373

74-
/**
75-
* @return BasePHPSession
76-
* @deprecated Since 1.4, Removal: 1.5, Reason: Use ->clearAll() instead
77-
*/
78-
public function clear_all() {
79-
$this->clearAll();
80-
}
81-
8274
}

classes/Configuration/Configuration.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,4 @@ public static function reset() {
8484
self::$configuration = [];
8585
}
8686

87-
/**
88-
* @param string $section
89-
* @param string $key
90-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->remove() instead
91-
*/
92-
public static function remove_key($section, $key) {
93-
self::remove($section, $key);
94-
}
95-
96-
/**
97-
* @param string $section
98-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->removeSection() instead
99-
*/
100-
public static function remove_section($section) {
101-
self::removeSection($section);
102-
}
103-
10487
}

classes/Domain/Collection/AbstractModelCollection.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -91,29 +91,4 @@ public function count() {
9191
return count($this->items);
9292
}
9393

94-
/**
95-
* @param $id
96-
* @return AbstractModel
97-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->getById() instead
98-
*/
99-
public function get_by_id($id) {
100-
return $this->getById($id);
101-
}
102-
103-
/**
104-
* @param AbstractModel $model
105-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->add() instead
106-
*/
107-
public function set_item(AbstractModel $model) {
108-
$this->add($model);
109-
}
110-
111-
/**
112-
* @param AbstractModel $model
113-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->remove() instead
114-
*/
115-
public function remove_item(AbstractModel $model) {
116-
$this->remove($model);
117-
}
118-
11994
}

classes/Domain/Repository/AbstractDomainRepository.php

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -153,48 +153,4 @@ protected function createIdentityModel($id) {
153153
return $model;
154154
}
155155

156-
/**
157-
* @param int $id
158-
* @return AbstractModel
159-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->findById() instead
160-
*/
161-
public function find_by_id($id) {
162-
return $this->findById($id);
163-
}
164-
165-
/**
166-
* @return AbstractModelCollection
167-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->findAll() instead
168-
*/
169-
public function find_all() {
170-
return $this->findAll();
171-
}
172-
173-
/**
174-
* @param array $where
175-
* @return AbstractModel
176-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->queryOne() instead
177-
*/
178-
protected function query_one($where = NULL) {
179-
return $this->queryOne($where);
180-
}
181-
182-
/**
183-
* @param array $where
184-
* @return AbstractModelCollection
185-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->queryMany() instead
186-
*/
187-
protected function query_many($where = NULL) {
188-
return $this->queryMany($where);
189-
}
190-
191-
/**
192-
* @param int $id
193-
* @return AbstractModel
194-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->createIdentityModel() instead
195-
*/
196-
protected function create_identity_model($id) {
197-
return $this->createIdentityModel($id);
198-
}
199-
200156
}

classes/Mvc/AbstractController.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ abstract class AbstractController {
2525
*/
2626
protected $response;
2727

28-
/**
29-
* @var bool
30-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->requireHttpAuthentication instead
31-
*/
32-
protected $require_http_authentication = NULL;
33-
3428
/**
3529
* @var bool
3630
*/
@@ -41,11 +35,6 @@ abstract class AbstractController {
4135
* @param AbstractView $response
4236
*/
4337
public function __construct(Request $request, AbstractView $response) {
44-
/** @noinspection PhpDeprecationInspection */
45-
if ($this->require_http_authentication !== NULL) {
46-
/** @noinspection PhpDeprecationInspection */
47-
$this->requireHttpAuthentication = $this->require_http_authentication;
48-
}
4938
SignalSlotDispatcher::emitSignal(self::SIGNAL_INIT_REQUEST, $request);
5039
SignalSlotDispatcher::emitSignal(self::SIGNAL_INIT_RESPONSE, $response);
5140
$this->request = $request;
@@ -104,12 +93,4 @@ public function getTemplateName($defaultTemplateName) {
10493
return $defaultTemplateName;
10594
}
10695

107-
/**
108-
* @throws \Exception
109-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->handleNotSupportedMethod() instead
110-
*/
111-
public function handle_not_supported_method() {
112-
$this->handleNotSupportedMethod();
113-
}
114-
11596
}

classes/Mvc/Dispatcher.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,4 @@ protected function dispatchController(Router $router) {
152152
return $output;
153153
}
154154

155-
/**
156-
* @return string
157-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->getRequestMethod() instead
158-
*/
159-
public function get_request_method() {
160-
return $this->getRequestMethod();
161-
}
162-
163155
}

classes/Mvc/HttpStatus.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -90,29 +90,4 @@ public static function sendHeaders() {
9090
self::$additionalHeaders = [];
9191
}
9292

93-
/**
94-
* @param int $code
95-
* @param string $options
96-
* @throws \Exception
97-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->setStatus() instead
98-
*/
99-
public static function set_status($code, $options = NULL) {
100-
self::setStatus($code, $options);
101-
}
102-
103-
/**
104-
* @return int
105-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->getStatus() instead
106-
*/
107-
public static function get_status() {
108-
return self::getStatus();
109-
}
110-
111-
/**
112-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->sendHeaders() instead
113-
*/
114-
public static function send_headers() {
115-
self::sendHeaders();
116-
}
117-
11893
}

classes/Mvc/Router.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,4 @@ protected function enhanceRegex($regex) {
110110
return $regex;
111111
}
112112

113-
/**
114-
* @return array
115-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->getParameters() instead
116-
*/
117-
public function get_parameters() {
118-
return $this->getParameters();
119-
}
120-
121-
/**
122-
* @return mixed
123-
* @deprecated Since: 1.4, Removal: 1.5, Reason: use ->getResponder() instead
124-
*/
125-
public function get_responder() {
126-
return $this->getResponder();
127-
}
128-
129113
}

classes/Mvc/View/AbstractView.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,4 @@ protected function getTemplateEnvironment($template_name = NULL) {
172172
return $template;
173173
}
174174

175-
/**
176-
* @param string $templateName
177-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->setTemplateName() instead
178-
*/
179-
public function set_template_name($templateName) {
180-
$this->setTemplateName($templateName);
181-
}
182-
183-
/**
184-
* Sends an json encoded object to the browser using correct content type
185-
*
186-
* @param mixed $object Object (most likely an array) to json encode
187-
* @param string $callback If set to string answer will be sent as JSONP output with this function
188-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->jsonOutput() instead
189-
*/
190-
public function json_output($object, $callback = NULL) {
191-
$this->jsonOutput($object, $callback);
192-
}
193-
194175
}

classes/Mvc/View/TwigView.php

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -81,44 +81,4 @@ public function hasOutputFunction($name) {
8181
return $this->getRenderingEngine()->getFunction($name) instanceof \Twig_SimpleFunction;
8282
}
8383

84-
/**
85-
* @param string $name Name of the filter to use in the template
86-
* @param mixed $function Name of the function to execute for the value from the template
87-
* @param bool $htmlEscape
88-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->addOutputFilter() instead
89-
*/
90-
public function add_output_filter($name, $function, $htmlEscape = FALSE) {
91-
$this->addOutputFilter($name, $function, $htmlEscape);
92-
}
93-
94-
/**
95-
* @param string $name
96-
* @return bool
97-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->hasOutputFilter() instead
98-
*/
99-
public function has_output_filter($name) {
100-
return $this->hasOutputFilter($name);
101-
}
102-
103-
/**
104-
* Adds a function to use in the template
105-
*
106-
* @param string $name string Name of the function to use in the template
107-
* @param mixed $function string Name of the function to execute for the value from the template
108-
* @param bool $htmlEscape
109-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->addOutputFunction() instead
110-
*/
111-
public function add_output_function($name, $function, $htmlEscape = FALSE) {
112-
$this->addOutputFunction($name, $function, $htmlEscape);
113-
}
114-
115-
/**
116-
* @param string $name
117-
* @return bool
118-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->hasOutputFunction() instead
119-
*/
120-
public function has_output_function($name) {
121-
return $this->hasOutputFunction($name);
122-
}
123-
12484
}

classes/Orm/EntityMapper.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,4 @@ public function scalarizeValue($value) {
6363
return (string) $value;
6464
}
6565

66-
/**
67-
* @param array $record
68-
* @param AbstractModel $object
69-
* @return AbstractModel
70-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->recordToObject() instead
71-
*/
72-
public function record_to_object($record, AbstractModel $object) {
73-
return $this->recordToObject($record, $object);
74-
}
75-
76-
/**
77-
* @param AbstractModel $object
78-
* @return array
79-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->objectToRecord() instead
80-
*/
81-
public function object_to_record(AbstractModel $object) {
82-
return $this->objectToRecord($object);
83-
}
84-
85-
/**
86-
* @param mixed $value
87-
* @return string
88-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->scalarizeValue() instead
89-
*/
90-
public function scalarize_value($value) {
91-
return $this->scalarizeValue($value);
92-
}
93-
9466
}

classes/Persistence/DatabaseConnection.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -446,24 +446,4 @@ protected function whereSingleValue($value, $queryMode, $field) {
446446
return sprintf('`%s` %s %s', $field, $operand, $value);
447447
}
448448

449-
/**
450-
* Checks whether the connection to the database is established
451-
*
452-
* @return bool
453-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->isConnected() instead
454-
*/
455-
public function is_connected() {
456-
return $this->isConnected();
457-
}
458-
459-
/**
460-
* Returns the auto increment ID of the last query
461-
*
462-
* @return int
463-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->lastId() instead
464-
*/
465-
public function last_id() {
466-
return $this->lastId();
467-
}
468-
469449
}

classes/Singleton.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,4 @@ public function __wakeup() {
3535
throw new SingletonException('Unserializing ' . __CLASS__ . ' is not allowed.', 1412682032);
3636
}
3737

38-
/**
39-
* @return object
40-
* @deprecated Since: 1.4, Removal: 1.5, Reason: Use ->getInstance() instead
41-
*/
42-
public static function get_instance() {
43-
return self::getInstance();
44-
}
45-
4638
}

0 commit comments

Comments
 (0)