Note that I set Type=forking because svnserve daemonizes itself with -d.
请注意,我设置Type=forking是因为svnserve使用-d.
Side note: Your own service definitions should go to /etc/systemd/system/, /lib/systemd/system/ is reserved for unit definitions that come with system packages.
public function init(){ $this->enableCsrfValidation = false; }
禁止某一个action使用crsf验证
1 2 3 4
public function beforeAction($action) { $this->enableCsrfValidation = ($action->id !== "save-order"); // <-- here return parent::beforeAction($action); }