无法在Scheduler任务中创建类SVM的对象

时间:2016-08-10 21:57:06

标签: scheduled-tasks typo3 scheduler

我有一个提供调度程序任务的TYPO3扩展(扩展名 scheduler 6.2.0)。 在这项任务中,我有以下问题:

private $svm;
...
$this->svm = new \SVM();

在任务执行期间(从cron作业启动)执行此行时,程序将挂起并且不执行任何操作。没有例外,没有错误。它只是在等待某事 如果此行在扩展中执行 - 则会创建一个对象 如果我在TYPO3后端手动启动 scheduler 任务 - 也会创建一个对象。

在CLI执行类中, SVM 未知。但那应该有一个错误......

1 个答案:

答案 0 :(得分:1)

如果类.intro-body { text-align: center; background-repeat: no-repeat; background-position: center; } .intro-title { padding-top: 20vh; padding-bottom: 5vh; font-size: 650%; text-transform: uppercase; text-align: center; color: white; letter-spacing: 5px; text-shadow: 2px 2px black; } .intro-button { border: solid; color: white; padding: 20px 45px; display: inline-block; letter-spacing: 2px; text-align: center; text-transform: uppercase; cursor: pointer; } p.intro-button-hover:hover { background-color: white; opacity: 0.85; padding: 23px 48px; letter-spacing: 2px; text-align: center; text-transform: uppercase; color: black; border: unset; cursor: pointer; } .background-image { -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; position: absolute; top: 0; left: 0; height: 100%; width: 100%; } .image1{ background: url("http://placekitten.com/1200/1200") no-repeat center fixed; } .image2{ background: url("http://placekitten.com/1200/1300") no-repeat center fixed; } .image3{ background: url("http://placekitten.com/1300/1200") no-repeat center fixed; } .image4{ background: url("http://placekitten.com/1300/1300") no-repeat center fixed; } .image5{ background: url("http://placekitten.com/1300/1400") no-repeat center fixed; } @keyframes backgroundchangeFadeInOut { 0% { opacity:1; } 17% { opacity:1; } 25% { opacity:0; } 92% { opacity:0; } 100% { opacity:1; } } @-webkit-keyframes backgroundchangeFadeInOut { 0% { opacity:1; } 17% { opacity:1; } 25% { opacity:0; } 92% { opacity:0; } 100% { opacity:1; } } #background-change div:nth-of-type(1) { animation-delay: 20s; -webkit-animation-delay: 20s; } #background-change div:nth-of-type(2) { animation-delay: 15s; -webkit-animation-delay: 15s; } #background-change div:nth-of-type(3) { animation-delay: 10s; -webkit-animation-delay: 10s; } #background-change div:nth-of-type(4) { animation-delay: 5s; -webkit-animation-delay: 5s; } #background-change div:nth-of-type(5) { animation-delay: 0s; -webkit-animation-delay: 0s; } #background-change div { animation-name: backgroundchangeFadeInOut; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-duration: 25s; -webkit-animation-name: backgroundchangeFadeInOut; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-duration: 25s; } 未知,则会发生错误,不会有任何等待。我建议您调试并检查,例如如果此类存在,则使用SVM

如果不了解更多,很难提供更多帮助。