Skip to content

Commit 883e8e1

Browse files
committed
Source migration for neos 3.0
1 parent dd62a9b commit 883e8e1

File tree

16 files changed

+38
-37
lines changed

16 files changed

+38
-37
lines changed

Classes/TechDivision/DocViewer/AccessManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
namespace TechDivision\DocViewer;
33

4-
use TYPO3\Flow\Annotations as Flow;
5-
use TYPO3\Neos\Controller\Module\AbstractModuleController;
4+
use Neos\Flow\Annotations as Flow;
5+
use Neos\Neos\Controller\Module\AbstractModuleController;
66

77
/**
88
*
@@ -20,7 +20,7 @@ class AccessManager extends AbstractModuleController
2020

2121
/**
2222
* @Flow\Inject
23-
* @var \TYPO3\Flow\Package\PackageManagerInterface
23+
* @var \Neos\Flow\Package\PackageManagerInterface
2424
*/
2525
protected $packageManager;
2626

Classes/TechDivision/DocViewer/Controller/ModuleController.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use TechDivision\DocViewer\Exceptions\ParsingNotAllowedException;
99
use TechDivision\DocViewer\File\Parser;
1010
use TechDivision\DocViewer\File\Tree;
11-
use TYPO3\Flow\Annotations as Flow;
12-
use TYPO3\Neos\Controller\Module\AbstractModuleController;
11+
use Neos\Flow\Annotations as Flow;
12+
use Neos\Neos\Controller\Module\AbstractModuleController;
1313

1414
/**
1515
*
@@ -20,7 +20,7 @@ class ModuleController extends AbstractModuleController
2020

2121
/**
2222
* @Flow\Inject
23-
* @var \TYPO3\Flow\Package\PackageManagerInterface
23+
* @var \Neos\Flow\Package\PackageManagerInterface
2424
*/
2525
protected $packageManager;
2626

@@ -85,7 +85,8 @@ public function listAction() {
8585
'version' => $package->getInstalledVersion(),
8686
'name' => $package->getComposerManifest('name'),
8787
'type' => $package->getComposerManifest('type'),
88-
'description' => $package->getPackageMetaData()->getDescription()
88+
//'description' => $package->getPackageMetaData()->getDescription()
89+
'description' => $package->getComposerManifest('description')
8990
);
9091

9192
}

Classes/TechDivision/DocViewer/Controller/ResourceController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use TechDivision\DocViewer\Exceptions\PackageNotAccessibleException;
99
use TechDivision\DocViewer\File\Parser;
1010
use TechDivision\DocViewer\Util;
11-
use TYPO3\Flow\Annotations as Flow;
11+
use Neos\Flow\Annotations as Flow;
1212

1313
/**
1414
* Rudimentary service for resources. Flow does not allow serving static files which are not in the resource folder.
@@ -17,7 +17,7 @@
1717
*
1818
* @Flow\Scope("singleton")
1919
*/
20-
class ResourceController extends \TYPO3\Flow\Mvc\Controller\ActionController
20+
class ResourceController extends \Neos\Flow\Mvc\Controller\ActionController
2121
{
2222

2323
/**
@@ -28,7 +28,7 @@ class ResourceController extends \TYPO3\Flow\Mvc\Controller\ActionController
2828

2929
/**
3030
* @Flow\Inject
31-
* @var \TYPO3\Flow\Package\PackageManagerInterface
31+
* @var \Neos\Flow\Package\PackageManagerInterface
3232
*/
3333
protected $packageManager;
3434

Classes/TechDivision/DocViewer/Exceptions/FileNotInsideDocumentationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
/**
55
* File is not inside documentation exception
66
*/
7-
class FileNotInsideDocumentationException extends \TYPO3\Flow\Exception
7+
class FileNotInsideDocumentationException extends \Neos\Flow\Exception
88
{
99
}

Classes/TechDivision/DocViewer/Exceptions/PackageNotAccessableException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
/**
55
* Package is not accessible exception
66
*/
7-
class PackageNotAccessibleException extends \TYPO3\Flow\Exception
7+
class PackageNotAccessibleException extends \Neos\Flow\Exception
88
{
99
}

Classes/TechDivision/DocViewer/Exceptions/ParsingNotAllowedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
/**
55
* Parsing is not allowed exception
66
*/
7-
class ParsingNotAllowedException extends \TYPO3\Flow\Exception
7+
class ParsingNotAllowedException extends \Neos\Flow\Exception
88
{
99
}

Classes/TechDivision/DocViewer/File/Node.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
use TechDivision\DocViewer\Exceptions\FileNotInsideDocumentationException;
88
use TechDivision\DocViewer\Util;
9-
use TYPO3\Flow\Annotations as Flow;
9+
use Neos\Flow\Annotations as Flow;
1010

1111
class Node {
1212

@@ -18,7 +18,7 @@ class Node {
1818

1919

2020
/**
21-
* @var \TYPO3\Flow\Package\PackageInterface $package
21+
* @var \Neos\Flow\Package\PackageInterface $package
2222
*/
2323
protected $package;
2424

@@ -59,10 +59,10 @@ class Node {
5959

6060
/**
6161
* Node constructor.
62-
* @param \TYPO3\Flow\Package\PackageInterface $package
62+
* @param \Neos\Flow\Package\PackageInterface $package
6363
* @param $path
6464
*/
65-
public function __construct(\TYPO3\Flow\Package\PackageInterface $package, $path)
65+
public function __construct(\Neos\Flow\Package\PackageInterface $package, $path)
6666
{
6767
$this->package = $package;
6868
$this->path = trim(str_replace(Util::getDocumentPath($package), '', $path), "/");

Classes/TechDivision/DocViewer/File/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This file is part of the TechDivision.DocViewer package.
66
*/
77
use TechDivision\DocViewer\Exceptions\ParsingNotAllowedException;
8-
use TYPO3\Flow\Annotations as Flow;
8+
use Neos\Flow\Annotations as Flow;
99

1010
class Parser {
1111

Classes/TechDivision/DocViewer/File/Tree.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This file is part of the TechDivision.DocViewer package.
66
*/
77
use TechDivision\DocViewer\Util;
8-
use TYPO3\Flow\Annotations as Flow;
8+
use Neos\Flow\Annotations as Flow;
99

1010
class Tree {
1111

@@ -29,10 +29,10 @@ class Tree {
2929

3030
/**
3131
* Tree constructor.
32-
* @param \TYPO3\Flow\Package\PackageInterface $package
32+
* @param \Neos\Flow\Package\PackageInterface $package
3333
* @param $baseUri
3434
*/
35-
public function __construct(\TYPO3\Flow\Package\PackageInterface $package, $baseUri)
35+
public function __construct(\Neos\Flow\Package\PackageInterface $package, $baseUri)
3636
{
3737
$this->parser = new Parser($baseUri);
3838
$this->rootNode = $this->buildFsNode($package);
@@ -101,11 +101,11 @@ public function isDirectoryWithContent() {
101101

102102
/**
103103
* Builds up given folder path as composite
104-
* @param \TYPO3\Flow\Package\PackageInterface $package
104+
* @param \Neos\Flow\Package\PackageInterface $package
105105
* @param string $path
106106
* @return null|Node
107107
*/
108-
protected function buildFsNode(\TYPO3\Flow\Package\PackageInterface $package, $path = null) {
108+
protected function buildFsNode(\Neos\Flow\Package\PackageInterface $package, $path = null) {
109109

110110
if(!$path) {
111111
$path = Util::getDocumentPath($package);

Classes/TechDivision/DocViewer/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/*
55
* This file is part of the TechDivision.DocViewer package.
66
*/
7-
use TYPO3\Flow\Annotations as Flow;
7+
use Neos\Flow\Annotations as Flow;
88

99
class Util {
1010

@@ -18,7 +18,7 @@ class Util {
1818
/**
1919
* Get the documentation path
2020
*
21-
* @param \TYPO3\Flow\Package\PackageInterface $package
21+
* @param \Neos\Flow\Package\PackageInterface $package
2222
* @return string
2323
*/
2424
public static function getDocumentPath($package) {

0 commit comments

Comments
 (0)