File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/Symfony/Component/Cache/Adapter Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,16 @@ public function commit()
275
275
return $ ok ;
276
276
}
277
277
278
+ public function __sleep ()
279
+ {
280
+ throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
281
+ }
282
+
283
+ public function __wakeup ()
284
+ {
285
+ throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
286
+ }
287
+
278
288
public function __destruct ()
279
289
{
280
290
if ($ this ->deferred ) {
Original file line number Diff line number Diff line change @@ -282,6 +282,16 @@ public function commit()
282
282
return $ this ->invalidateTags ([]);
283
283
}
284
284
285
+ public function __sleep ()
286
+ {
287
+ throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
288
+ }
289
+
290
+ public function __wakeup ()
291
+ {
292
+ throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
293
+ }
294
+
285
295
public function __destruct ()
286
296
{
287
297
$ this ->commit ();
You can’t perform that action at this time.
0 commit comments