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